-
-
Notifications
You must be signed in to change notification settings - Fork 646
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
Not able to disable auto rotate when using thumbnail_image #1146
Comments
Hi @becoded, You're right, I'd expect
to not rotate, but it does. I'll have a look.
|
It's because of the way that glib arg parsing works, sorry, I don't think this is directly fixable. The best workaround would be to use
I think the best solution would be to tag the
Background: glib command-line switches must take one of two forms:
You can't mix the two styles, so a no-arg flag can't have an See https://developer.gnome.org/glib/stable/glib-Commandline-option-parser.html |
Hello @jcupitt I really appreciate it that you looked into this so fast! I don't really see your point to be honest.
How I read this is as follows:
So the only way to use the option auto-rotate is the 2nd form: So it seems that auto-rotate is configured as a simple flag but should be changed to a switch with a single argument. |
I think the argument is:
It was an unfortunate oversight when Anyway, use |
Will do. |
the auto_rotate option of thumbnail was default TRUE which made it useless from the CLI, since GOption only allows --switch, not --switch=false deprecate auto_rotate, add no_rotate, but allow either to be used see #1146
OK, fixed in git master. I'll close. |
Hello @jcupitt |
Hello, there's 8.7.1, but that's just a bugfix from 8.7.0. This change will be in 8.8.0, due in the spring some time, or you can build from git master if you want it now. |
It seems that the flag auto-rotate for thumbnail_image doesn't have any effect when using vips command line.
Source file: https://github.com/ianare/exif-samples/blob/master/jpg/orientation/portrait_8.jpg
Using the following command:
vips thumbnail_image portrait_8.jpg "portrait_8-600x450.jpg[strip,background=255 255 255,Q=95]" 600 --height=450 --auto-rotate=false
As I specify to strip the metadata + don't do the auto-rotate, I would expect that my end result should be a rotated image but the images displays correctly.
The text was updated successfully, but these errors were encountered: