# Imported images resizes itself

**URL:** <https://forum.litium.com/t/imported-images-resizes-itself/1876>\
**Category:** Questions\
**Created:** [February 5, 2021, 3:02pm UTC](https://forum.litium.com/t/imported-images-resizes-itself/1876 "2021-02-05T15:02:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![AOhlin](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@AOhlin](https://forum.litium.com/u/AOhlin)\
**Post date:** [February 5, 2021, 3:02pm UTC](https://forum.litium.com/t/imported-images-resizes-itself/1876/1 "2021-02-05T15:02:20Z")

</div>

Hi!  
Customer is having a problem when uploading images to the media library, they are using a new camera and for some reason a 1984x1984 picture turns into a cropped 5616 x 3744 px when uploaded.  
It doesn’t happen with the images from the old camera and the only thing i can see that is different between the old and new ones are that the old ones are at 72 dpi and new ones at 300 dpi.

Anyone know why this is happening? Customer is not able to choose another dpi-setting so I can’t try a lower setting.

Litium version: 6.1

---

<div class="post-metadata">

**Author:** ![NilsN](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/nilsn/32/302_2.png) [@NilsN](https://forum.litium.com/u/NilsN)\
**Post date:** [February 5, 2021, 3:43pm UTC](https://forum.litium.com/t/imported-images-resizes-itself/1876/2 "2021-02-05T15:43:28Z")

</div>

If you check the image properties and the Details tab, does the values for width and height look correct?  
Is it possible to get a sample image to troubleshoot?

---

<div class="post-metadata">

**Author:** ![AOhlin](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@AOhlin](https://forum.litium.com/u/AOhlin)\
**Post date:** [February 8, 2021, 6:40am UTC](https://forum.litium.com/t/imported-images-resizes-itself/1876/3 "2021-02-08T06:40:56Z")

</div>

Hi and thanks for the reply!

Ye the values look all good for what I can see.

Here’s an example image and what I can see in the properties section.

 ![210128-102049_Jpg](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/a396ad6832682ec2799c16b520887e386dfd43d4.jpeg)  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/89514bf399e39456444e3baaa678a54e66278311.png)

---

<div class="post-metadata">

**Author:** ![NilsN](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/nilsn/32/302_2.png) [@NilsN](https://forum.litium.com/u/NilsN)\
**Post date:** [February 8, 2021, 11:05am UTC](https://forum.litium.com/t/imported-images-resizes-itself/1876/4 "2021-02-08T11:05:53Z")

</div>

The sample works just fine when I’m uploading it, but I think the EXIF data is stripped when you upload it to the forum.

Would it be possible to upload the image and share a link instead? For example, [wetransfer.com](http://wetransfer.com) supports uploads with a link that’s valid for one week.

Otherwise you could attach it in an email to [support@litium.com](mailto:support@litium.com) to create a ticket.

---

<div class="post-metadata">

**Author:** ![AOhlin](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@AOhlin](https://forum.litium.com/u/AOhlin)\
**Post date:** [February 8, 2021, 12:03pm UTC](https://forum.litium.com/t/imported-images-resizes-itself/1876/5 "2021-02-08T12:03:58Z")

</div>

Hi again,  
Ye that seems correct, i downloaded the image from here and it uploaded with correct size as you said.  
I have uploaded the file on wetransfer and tested it after download, this one should give you the resize-problem.

> **[210128-102049\_Jpg.jpg](https://wetransfer.com/downloads/e35f84edf2a049eda997e4125a9acc8020210208115820/5a45e5)**
>
> 1 file sent via WeTransfer, the simplest way to send your files around the world

---

<div class="post-metadata">

**Author:** ![NilsN](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/nilsn/32/302_2.png) [@NilsN](https://forum.litium.com/u/NilsN)\
**Post date:** [February 8, 2021, 1:02pm UTC](https://forum.litium.com/t/imported-images-resizes-itself/1876/6 "2021-02-08T13:02:18Z")

</div>

When an image is uploaded into Litium it passes through a service that extracts metadata about the image and uses it to set sizes and other properties of the image.

The sample has this data:

```auto
Image Width : 1984
Image Height : 1984
Exif Image Width : 5616
Exif Image Height : 3744

```

In your version of Litium, the metadata tags to fetch this information is in this order (using height as an example): `Exif Image Height`, `Image Height` and lastly `Height`. As soon as a value is found it is used, which explains why you’re getting the wrong result.

This order was changed in 6.2.2 as part of [this bug](https://docs.litium.com/support/bugs/bug_details?id=44226), so that `Image Height` is used before `Exif Image Height`.

So the customer can either upgrade their solution (always recommended) or investigate what options are available in the photo editing software to remedy this after cropping the image. Scrubbing the Exif data would also work, but introduces an extra step.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [March 8, 2021, 1:02pm UTC](https://forum.litium.com/t/imported-images-resizes-itself/1876/7 "2021-03-08T13:02:25Z")

</div>

Closed on March 8, 2021, 1:02pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
