Problem with small images and large thumb (I assume)
-
Been using this plugin for about a week a working great so far, thank you. I had an issue today where I couldn’t crop an image to the proper aspect ratio. The original image size was 412×329 and the target thumbnail size was 720×340. This was a “featured” image, too. Pretty sure this is the smallest image I’ve had to work with thus far which is why I’m assuming it has something to do with that.
Anyway, I tried going through the code in ManualImageCropEditorWindow.php but couldn’t find exactly what needed to be changed to fix it. However, since I always want my crop to follow the aspect ratio of the thumbnail and it seemed like that was getting set to 1 somewhere I decided to add “$aspectRatio = ($width / $height);” to line 127, after all the calculations take place and it fixed it for this particular image.
I’ll see if it effects anything down the line.
- The topic ‘Problem with small images and large thumb (I assume)’ is closed to new replies.