dotherightthing / wpdtrt-gallery

Gallery viewer which supports images, panoramas, maps, SoundCloud and Vimeo
1 stars 0 forks source link

Media Cloud thumbnail crop incorrect on panorama image #75

Open dotherightthing opened 4 years ago

dotherightthing commented 4 years ago

Screen Shot 2019-10-07 at 12 56 21 AM

dotherightthing commented 4 years ago

https://talk.mediacloud.press/topic/106/thumbnail-crop-incorrect-on-wide-panoramic-images/5

Yeah, so here's the problem. Imgix's max image output size is 8192 pixels. When you load an image in the crop tool with Imgix enabled, the image that the crop tool uses is from Imgix and the crop tool uses the dimensions from the Imgix image.

However, when you apply the crop in the backend, it's using the actual image dimensions which are larger and so the crop offset is wrong. You can see it if you move the crop all the way to the right of the image, the crop does actually work but it's definitely wrong.

Unfortunately the fix for this on my end is a huge undertaking and I will fix it, but it likely won't be for a week or two.

In the meantime, you should resize these large images to 8192 before uploading them. Sucks, but it is what it is.