Skip to content

Image position - stretching image #467

Closed
@Trynex

Description

@Trynex

Hello everyone. I have a problem with images using exceljs. If I just run excel file through and save it, images are immediately deformed (stretched). I tried workaround and so I just removed images from original excel file and inserted them with add image. Again stretched. So I tried not to specify cells for image to include, but also other(more specific option):

{tl: { col: 1.2, row: 0.4 }, br: { col: 3.2, row: 0.9 }}

This worked when row number was not decimal. Because the example above didn't scale the image
from 0.4 to 0.9 of the cell, but rather deformed it .. Which is weird as the image started the position on 0.4. This for example worked fine:

{tl: { col: 1.2, row: 0.4 }, br: { col: 3.2, row: 1 }}

but any decimal number in br->row does weird things.

I also tried to specify editAs attribute and all its options, but no luck there.

Am I doing something wrong or is it a bug? Is there any workaround where I can specify the place where I want to include image without stretching image?

Thank you for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy