-
Notifications
You must be signed in to change notification settings - Fork 379
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
Rotation issue #532
Comments
you could use the |
Also, make sure you don't run the strip filter before autorotate or it will remove the meta that tells the filter which direction it should be rotated to. |
Nothing I'm still having the same problem... this is my config, because I don't know what else try... liip_imagine:
driver: imagick
cache_prefix: /uploads/cache
filter_sets:
profile_view:
quality: 80
filters:
autorotate: ~
strip: ~
thumbnail: { size: [178, 178], mode: outbound } |
The meta on the image may be forcing it to rotate to what you see. Try it without (you will need to clear your media cache) |
@trsteel88 sorry for my ignorance about this, but what you mean when say to clear media cache? |
When an image is loaded it creates a cache in /web/media/cache - You will need to clear that cache if you want to see image based on your latest config. |
Ah, yes I always delete the cache when I change the config, but still no working. Anyway thanks very much for your help. |
@digitalkaoz The auto rotate filter's name is |
I've got the same problem after upload my Pictures are autorotate by the bundle even if I add the autorotate filter, have you fix it ? |
No, but the other day I found the problem. The previous developer (who installed the bundle) use and old version of the liip bundle... |
So, in your opinion, using an old version of this bundle is the only solution ? ^^ |
Nope, using an old version is the problem! the autorotate filter is called auto_rotate, check your configs. |
I think that i'm using the latest version, there is my config : my_portfolio: the auto_rotate doesn't work at time. And there is the config of the bundle into my composer.json : "liip/imagine-bundle": "~1.2" |
Dump the exif Data of the File here, and we may find the Problem anaelChardan [email protected] schrieb am Fr., 17. Apr. 2015 15:18:
|
Hum, can you help me to do that please ? :) |
http://mikebeach.org/2011/12/17/how-to-retrieve-exif-data-from-the-command-line-in-ubuntu-linux/ anaelChardan [email protected] schrieb am Fr., 17. Apr. 2015 18:04:
|
Here is an example :
|
Mh regarding exif:Orientation: 6 It should rotate 90° Isnt that correct? anaelChardan [email protected] schrieb am Sa., 18. Apr. 2015 19:29:
|
Yep on my Web page my Pictures appears with rotation of 90 so it's not good for the neck of my viewers ^^ |
But what should we do? We only trust the exif data. If they arent correct anaelChardan [email protected] schrieb am Sa., 18. Apr. 2015 20:34:
|
I don't know, I will try with two separate filters. What is your ideas ? Else, I can add a field in my form to rotate or not the picture. I really don't know :) |
I have no idea. It depends ;) anaelChardan [email protected] schrieb am Sa., 18. Apr. 2015 20:45:
|
The problem is that It's probably needs more tests. I tested this image (http://server.ndv.net.ua/IMG_0556.JPG) on iPhone and Ubuntu laptop. Photo was made by iPhone. When I load image directly from iPhone - I think we need to modified What are you think, guys? |
who should modify the exif data during download on your laptop? something in your workflow modifies the exif data... |
I agree with bocharsky, I think it's the source of the problem. I'll try to find a solution tonight. |
@digitalkaoz The exif data not modify during I download image on my laptop. I think laptop browser resolve rotation based on exif data before upload it to website and website get already rotated image, nonetheless the source image on laptop stay not modified. @Ananas85 Thanks! I will test it idea more thoroughly tomorrow too. And it will be great to test on Mac and Windows OS too. |
…es (Possible resolve liip#532)
I made an prototype that resolved this issue for me and create an PR #599. liip_imagine:
filter_sets:
my_thumb:
filters:
mobile_auto_rotate: ~ Could anybody test it in yours projects? It will be great if @Merk87 test it in his case too. P.S. Do NOT forget to use my |
user agent spoofing cant be trusted, but if it works for you... so desktop browser have support for auto_rotating images based on the exif data and mobile browser not? or vice versa? |
Hi, first, Thank you @bocharsky-bw , I think it will correct the problem, I just need you to test it into my project, can you help me please. :-) |
@digitalkaoz Yes, you right. I think that desktop browser do the auto-rotating images based on the exif data before upload and mobile one do not. @Ananas85 Hi! What help do you need? You can try to fetch the |
Does this currently work in the master ? |
This filter work:
This one doesn't:
It's like the filter is never called. I use Imagine 0.5. If I put Here is the full output:
Finally, I think that this is due to the fact that I use Imagine 0.5, but I can't change this since another Bundle require this old version. |
@alexislefebvre Imagine |
I removed the requirement on the Finally, it looks like |
I was able to upgrade Imagine to the last version ( |
@alexislefebvre I'll look into inserting a note in the documentation. |
auto_rotate wont work if exif PHP function is not enabled |
Still not working for me in v2.1. I installed imagick, exif, still not working. The bundle shouldn't throw an exception if configuration is not working ? |
Closing this issue because of #1230 More details: #1230 (comment) If it's still an issue for you, please open a new issue, and thanks a lot :) |
Hello.
I'm experiencing a weird bug.
I'm using the thumbnail filters and when my users upload a picture for example this one:
Automatically is rotated... I've checked the exif data for this one and in orientation I found
Orientation Rotate 90 CW
So, I'm guessing that the bundle is taking the orientation on the exif data and applying automatically, but this behaviour can be deactivated? Because in this case this image is vertical but after uploading it, the thumbnail is displayed as landscape...
Thanks!
Edit --> After updating the picture here, is also rotated.
The text was updated successfully, but these errors were encountered: