php-image-resize icon indicating copy to clipboard operation
php-image-resize copied to clipboard

Add note to README about gd and exif requirements

Open asdfMaciej opened this issue 1 year ago • 1 comments
trafficstars

Hello,

I've noticed that images processed by this library aren't rotated correctly.

The original image with full metadata: https://kaszkowiak.org/IMG_0707.jpg

Resizing code:

$image = new ImageResize($path);
$image->crop(600, 600, true);
$image->save($path);

Result: image

All related issues are closed, so I created a new one with a reproducible example :)

Thanks for creating and maintaining this library! Would love if this gets fixed, as currently it renders it unusable for me.

asdfMaciej avatar Feb 02 '24 11:02 asdfMaciej

I've found the true cause. I didn't have the EXIF extension configured in PHP container:

docker-php-ext-install exif

Upon installing the extension, rotating the image works as expected!

I'm changing the issue title and leaving it open, as it would be really helpful if you mentioned it in README :)

Cheers!

asdfMaciej avatar Feb 02 '24 11:02 asdfMaciej