Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add note to README about gd and exif requirements #195

Open
asdfMaciej opened this issue Feb 2, 2024 · 1 comment
Open

Add note to README about gd and exif requirements #195

asdfMaciej opened this issue Feb 2, 2024 · 1 comment

Comments

@asdfMaciej
Copy link

asdfMaciej commented Feb 2, 2024

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 asdfMaciej changed the title Images aren't rotated correctly Add note to README about gd and exif requirements Feb 2, 2024
@asdfMaciej
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant