Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Rotate displayed image (client side)
bastian74
#1 Posted : Sunday, 1 May 2011 3:24:05 PM(UTC)
Rank: Member

Joined: 28/10/2010(UTC)
Posts: 13

I'm not much of a programmer, but I might be able to figure it out if you gave me a head start.
I'd like to impliment auto image rotation as well as the option for the image to be rotated client-side (without affecting the server files)

Can you just point me to the best spot to implement the feature?

(right before low res file creation I'd imagine)

bastian74
#2 Posted : Sunday, 1 May 2011 3:42:59 PM(UTC)
Rank: Member

Joined: 28/10/2010(UTC)
Posts: 13

Actually never mind. There is too much I don't know about C Sharp.
Another option would be if you preserved exif data on the low res / thumbnail I could script a job that goes through and rotates all the low res files in the media cache folder.
Roger Martin
#3 Posted : Sunday, 1 May 2011 7:09:55 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

What do you mean by "preserved exif data on the low res / thumbnail?" GSP extracts EXIF and other metadata when it adds images to the gallery, so the data is present in the database.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
bastian74
#4 Posted : Monday, 2 May 2011 7:44:15 AM(UTC)
Rank: Member

Joined: 28/10/2010(UTC)
Posts: 13

The actual low res jpeg files do not have any exif data in them, so I can't run a batch job to rotate the ones that are sideways.
Roger Martin
#5 Posted : Monday, 2 May 2011 7:17:54 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Ah, I see. There are a few reasons why it would be good to embed the metadata into the generated thumbnail and compressed images, and I may well do that someday. But that is a fair bit of effort that will probably come after everything listed in the roadmap.

The auto-rotate feature would be easier to implement and one I would like to add, so I'll look into getting into the 2.6 release. If any developers can do this for me and share the code, I would be really grateful...
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.