Rotate in place fails silently when the picture is read-only

Bug #768496 reported by Menachem Shapiro
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
feh (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: feh

I'm have the following installed:
Ubuntu 10.10
feh 1.7-1
libjpeg-progs 8b-1
exiftran 2.07-3

When I try to rotate an image using feh's inplace editing (right-clicking the image, and chosing "Rotate 90 CW" for example), nothing happens. The picture does not rotate.

Feh does not display any error message, but when I run feh from the command line, I get the following error message (the picture I'm trying to rotate is called "p1000065.jpg":
---
jpegtran: can't open p1000065.jpg for writing
feh WARNING: lossless rotate: Got exitcode 1 from jpegtran. Commandline was:
jpegtran -copy all -rotate -1076465748 -outfile p1000065.jpg p1000065.jpg
---

When I try to run the jpegtran command directly from the command line, all I get is the help menu, so the command feh is trying to run isn't working for some reason.

Edited to add:
The reason for this error was that the file I was trying to rotate was read-only. However, feh didn't give any indication of what the problem was, it just failed silently. It would be nice if there was some kind of indication why the action failed, or perhaps the options shouldn't be available when the picture cannot be written.

Revision history for this message
Menachem Shapiro (menachem) wrote :

I just figured out what the problem was. The pictures were read-only (since I copied them from a CD), and feh was silently failing when trying to rotate the image.

Making the pictures writable solved the problem, but it would have been nice if feh had given some kind of indication as to why it failed (or perhaps even disable the options that don't work when the picture is read-only).

I will try to update the bug report to reflect this.

description: updated
summary: - Rotate in place doesn't work, doesn't display error
+ Rotate in place fails silently when the picture is read-only
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.