-
Notifications
You must be signed in to change notification settings - Fork 28
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
jpegtran errors with "Invalid crop request" #92
Comments
The code has been written to crop filenames with spaces Line 171 in 9dbf930
I can see this might fail if |
Tried croppiung a file with a space in it, and it worked. I think this issue can be closed. |
Correction: I tested it with cropgtk.py |
Same result with cropgui.py |
I seem to be having that problem , but... not all the time ? I was able to crop 1 out of 6 files in a certain folder. Others failed with "Error: file not found"... and the path contains a space for all of those. |
Ah, but what does "Invalid crop request" mean ? and does it have anything to do with the "File not found" error ? |
I suspect it is failing to crop - do the "f" characters in the dimension string have something to do with it? |
I was also noticing the "f" characters. On Debian this is supported in jpegtran from libjpeg-turbo-progs and was apparently added circa 2013 (in 1.2.90 (1.3 beta1)) and is noted as being ported from "jpeg-8d". The submitter of that feature also had it on their system, but maybe it's not everywhere. If you're comfortable using the command-line, can you try "jpegtran -version"? mine prints So at first we have jpegtran probably failing with "invalid crop request", possibly due to the unsupported "f" syntax; then, exiftool fails. That's the kind of message I get when it does:
since a failed jpegtran wouldn't create an output file. I'm not thrilled about the idea of sniffing jpegtran versions ... |
thanks.
either the 'f' is indigestible or the crop dims are larger than the image ? (thinking of #100 here ) |
Can you attach a specific image that fails, along with the exact jpegtran command line show in the terminal window? What OS are you using? |
Hi, |
Thanks, closing issue. |
Both when using the file browser to select images to crop and when passing (relative or absolute) paths from the command line, cropgui shows the image and you can select the crop area, but when trying to crop, it doesn't work. It just prints a message to the console that the file wasn't found.
The only working method (and only if just the folder names contain space but not the filename) is to
cd
into the directory containing the files, and then calling cropgui with a relative path (i.e. just the filename).The text was updated successfully, but these errors were encountered: