Re: FC3, image orientation problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Marc M wrote:
> Here's a weird one. In FC3 I have this situation where I go to configure the 
> screensaver as 'slideshow'. I point it to the
> directory and all is well. However when it pulls the images, it has some 
> that are sideways. Yet when I go into the File M
> anager it displays the images as vertical, ie correctly oriented. I can go 
> into Kedit and do 'rotate counterclockwise' then save, and that fixes the 
> problem -- but I am just wondering why this is happening and why it would 
> only show up in some pics and not others?

I have this problem with JPEGs that come from my digital camera, a Canon
A510. When I put the camera on its side to take portrait-oriented
photos, the Canon saves them as landscape with an EXIF "rotate" tag.

Some software honours this, and rotates the picture when it is loaded.
But not everything does. For example, if I try to load one as a
background picture in Gnome, it will come out "landscape".

You could file a bug against the screenshow, or automatically rotate
such pictures when you import them.

I have a shell-script I run from cron that changes the backdrop to a
random image periodically. I use the following code, with ImageMagick
and the jhead RPM from Extras, to automatically rotate these pictures:

if jhead "$PICTURE" | grep -q "entation  : ro"
then
    COMMAND=$(jhead "$PICTURE" | grep Orientation | cut -c16-)
    nice -20 convert -$COMMAND "$PICTURE" $HOME/.background-img
    PICTURE=$HOME/.background-img
fi

(It relies on the output of jhead being nearly suitable as a command for
convert).

You might want to modify this for your purposes...

Hope this helps,

James.

-- 
E-mail address: james | The Inquirer was set up by Mike Magee (ticker: DODGY),
@westexe.demon.co.uk  | who co-founded well-known IT site The Register seven
                      | years ago after countless years editing and managing
                      | all manner of things which could be Aardvark Today and
                      | Fish Farming Monthly but weren't. -- The Inquirer


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux