Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am wondering why the image dimensions in the media library are not the dimensions from the uploaded image file. Instead of the "normal" dimensions, the EXIF dimensions are displayed. I read this in the following blog post:
Therefore, there is a class called "ImageHelper.cs" which can be found here:
The method "GetDimensions" does the job.
Now my question: Can i override this "GetDimensions" method to get the "normal" image dimensions? (See the dimensions in the following screenshot)
Thank you in advance!
Firstly, here's the rub - technically speaking the "normal" dimensions are the EXIF dimensions. If the EXIF data is wrong then it's a problem with the file itself - strictly speaking it doesn't meet the JPEG spec.
With that in mind, you'd be better off stripping out the EXIF data (or making sure that it is "right") before uploading it to the site, otherwise you'll have this problem in other places too.
You could strip EXIF data out or override it at upload using ImageProcessor but that would mean re-processing the image.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted