sachatrauwaen / OpenContent

Structured Content editing for DNN (Dotnetnuke)
46 stars 25 forks source link

Cropped image size much bigger than original #151

Closed cklenk closed 3 years ago

cklenk commented 3 years ago

Hello,

We are using open content 4.5 on dnn 9.8.1. We have a template using a imagex type. Here is the definition.

"Image": { "title": "Image", "label": "Image", "type": "imagex", "width": 800, "height": 600, "helper": "First select an image and then be sure to click Crop.", "showCropper": true, "saveCropFile": true, "overwrite": false }

I'v noticed that the cropped images are much bigger than the original files uploaded. One example is the uploaded file is 61.7 KB. We set the crop size to 800x600. And that file is 1.9 MB.

Original files image

Cropped files image

Any idea what is going on?

Thanks -Cameron

Timo-Breumelhof commented 3 years ago

What are the pixel sizes of the original images? This could be due to the jpeg compression being lower on the original images if they are also quite low in pixels.

cklenk commented 3 years ago

Here is some comparisons between the original and cropped image

b-creative commented 3 years ago

Yeah, it's 96 dpi, and not the expected web format 72 dpi.

Timo-Breumelhof commented 3 years ago

@b-creative DPI does not really matter on the Web. A browser will just show Pixels

Timo-Breumelhof commented 3 years ago

@cklenk that's strange. I just checked some of my cropped files and they are considerably smaller. Can you reproduce this with the attached image? pexels-photo-160207

b-creative commented 3 years ago

@b-creative DPI does not really matter on the Web. A browser will just show Pixels

Ofcourse, but it effects file size.

Timo-Breumelhof commented 3 years ago

@b-creative DPI does not really matter on the Web. A browser will just show Pixels

Ofcourse, but it effects file size.

AFAIK 100 x 100px image @72 DPI is just a big as the same image @ 1000 dpi.

cklenk commented 3 years ago

@Timo-Breumelhof we re-exported the images at 72 dpi and ran them through the image cropper again. The file sizes did not explode this time. So I think we fund the culprit. Thank you for the help everyone! image