Preservation of original picture

VENCO
VENCO's picture

Joined: 2004-03-01
Posts: 78
Posted: Sat, 2009-07-04 20:52

From the updated description in http://sourceforge.net/apps/trac/gallery/ticket/339 I understand that the original versions of pictures are not preserved in G3.

I rotated an image to test this and found that my file went from 1.6mb to about 850kb! Next thing I did was to change the advanced settings of image_quality from the default of 75 to 100. This drastically increases the file size after a rotate and increases further after each additional rotate.

Is there a way to preserve the original in G3? For example, can I change image_quality to a particular value that preserves the file, or any other setting?

I would greatly appreciate preservation of the original file as one of the reasons I like the gallery programs, is because it allows me to have an offsite backup of my important pictures. If the original is no longer preserved I lose that "feature".

_________________________
[img]http://www.indefik.com/pics/forumrandom.jpg[/img] Random picture from my Gallery
LyricsRepository.com

 
Shai

Joined: 2003-12-10
Posts: 61
Posted: Sat, 2009-07-04 20:55

I agree... Using Gallery and by that have file preservation is one of the reasons I decided to have an online Gallery of my photos.

 
talmdal

Joined: 2006-12-06
Posts: 358
Posted: Sat, 2009-07-04 21:03

Probably won't happen. One of the design philosophies of g3 was to keep it simple and that it would meet the requirements of 80% of the users. The idea being that the specialized functionality required by the other 20% would be developed by the community. We tried to make the learning curve for writing modules a lot flatter (i.e. check out gallery3-contrib/developer module)

We also made a conscious decision to limit the amount of images that were stored. so there is only the thumb, resize and the fullsize. If you want to keep the fullsize as backup, then remove edit permissions which should remove the rotate capability.

An if you truly need it, it would be very simple to write a module that adds a new directory to tmp (backup) and on the item add event, copies the file to the backup directory and creates a database table to index the backups.
http://www.timalmdal.com

 
Toshik

Joined: 2009-07-29
Posts: 3
Posted: Wed, 2009-07-29 11:57

Seems using jpegtran for looseless rotation is best way to preserve original images. But for now it is unsupported by G3

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Fri, 2009-07-31 19:05

rWatcher has started working on a keeporiginal module for G3. http://codex.gallery2.org/Gallery3:Contrib_Modules
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
VENCO
VENCO's picture

Joined: 2004-03-01
Posts: 78
Posted: Mon, 2009-08-03 12:43

bharat: Thanks for notification of that module.
And thank you rWatcher for developing the module! It is an exact solution to my concerns.

_________________________
[img]http://indefik.com/pics/forumrandom.jpg[/img] (Random picture from my G2)
[img]http://indefik.com/pics/lyricsrepositorysmall.jpg[/img]

 
Mike Pisano

Joined: 2009-08-02
Posts: 12
Posted: Thu, 2009-08-06 17:08

Love the module and also is exactly what I need as well.

Is it possible to merge the logic for "Download Fullsize Image" to detect if "Keep Original" is enabled and use that image (if available).

Keep in mind I only mean the button link - the full size image's that display need to look accurate.

Regards,
Mike

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2009-08-13 18:34

@MikePisano: Please file a feature request for that idea, thanks!
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
mattdm

Joined: 2005-07-22
Posts: 181
Posted: Thu, 2010-10-21 20:00

Hmmm. One step forward, one step back! Gallery 2 could use jpegtran to rotate jpegs losslessly. This module seems to be solving the wrong problem. :-/

 
mattdm

Joined: 2005-07-22
Posts: 181
Posted: Thu, 2010-10-21 20:07
 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2010-10-26 03:51

All things in time. We'll get to it when we can!
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git