No symlink feature in module "server_add" and edits modify original images?

gwynnebaer

Joined: 2003-12-10
Posts: 7
Posted: Tue, 2009-06-09 04:48

In G1 and G2, I used symlinks with the server_add module (well, its predecessors), and this solved two problems:
1. Saved space (I have over 70K pics)
2. Originals were never modified even with symlinks

I tested an import using the current server_add and there is no option for symlinks. In addition, when rotating an image, for example, the copy of the image from the import is modified (md5sums no longer match). This implies that even if I made manual symlink replacements to the files (through some scripting of my own), that there is the risk that the originals would be modified by G3 edits.

I will try and confirm what is actually being done to the files by G3,

Is modification of the originals intentional?

 
gwynnebaer

Joined: 2003-12-10
Posts: 7
Posted: Tue, 2009-06-09 04:54

Looks like the file is actually modified by the rotation rather than a copy being made (I believe the G2 behavior was to make a copy).

--- /tmp/1      2009-06-08 21:51:09.783015826 -0700
+++ /tmp/2      2009-06-08 21:51:04.831016159 -0700
@@ -1,9 +1,9 @@
-File name    : IMG_31588.JPG
-File size    : 1186109 bytes
-File date    : 2009:06:08 14:49:23
+File name    : /media/pix/2009/2009_05/2009_05_11/IMG_31588.JPG
+File size    : 3863865 bytes
+File date    : 2009:05:11 14:37:38
 Camera make  : Canon
 Camera model : Canon EOS DIGITAL REBEL XTi
 Date/Time    : 2009:05:11 14:37:37
-Resolution   : 2592 x 3888
+Resolution   : 3888 x 2592
 Orientation  : rotate 270
 Flash used   : No
 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Fri, 2009-06-12 08:55

Sorry we're not yet supporting symlinks in gallery3 and it's not on the roadmap for the 3.0 release. And yes in G3 we are not preserving the untouched original.. when you rotate an image we rotate the original. Both of these choices were made for simplicity to meet the needs of 80-90% of our users and keep the code light/clean.
---
Problems? Check gallery3/var/logs before you post! and file bugs here!
Latest zip: http://github.com/gallery/gallery3/zipball/master
Latest git: http://codex.gallery2.org/Gallery:Using_Git