Mass edition of an album pictures

gael

Joined: 2003-08-10
Posts: 14
Posted: Sun, 2003-08-10 22:48

Hi,

Since edition of multiple photos parameters is not possible at once in the current gallery 1.3.x, it is quite painful to rotate images and so on when you import a large album...

To solve this, I added a "mass edition" feature to gallery that displays all pictures from an album and offers for each of them to rotate it, to change caption or to hide it (other settings might be doable if needed), and then performs all requested changes at once, which greatly speeds up rotating lots of images for instance.

If you are interested, the patch for 1.3.4-pl1 is available at http://tom.weedns.com/gallery/gallery-1.3.4-pl1.massedit.patch
Comments appreciated :)

Gaël.

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Tue, 2003-08-12 07:45

Looks interesting, gael, 2 points:
1) It should be "Mass editing" or "mass edit" not "mass edition" :-)
2) Can you upload a copy to http://sourceforge.net/tracker/?group_id=7130&atid=307130 so we can look to integrating it into a later version of gallery.

Thanks for the hard work.

 
spanelr
spanelr's picture

Joined: 2003-07-11
Posts: 8
Posted: Wed, 2003-08-13 05:30

I am running a stock installation of v1.3.4 and found the application of the patch to be smooth and without problems. The mass edit feature is awesome! I hope it gets considered for G2.

-Bob

 
dzubi
dzubi's picture

Joined: 2003-08-04
Posts: 22
Posted: Thu, 2003-08-14 12:38

hey this patch really rocks! thanks a lot

 
dzubi
dzubi's picture

Joined: 2003-08-04
Posts: 22
Posted: Thu, 2003-08-14 13:42

may I suggest a little enhancement for this patch?
It would be nice to have the possibility to make a "mass order". A checkbox by every thumbnail which says "order pix" and at the bottom a combobox where you can choose the lab.
what do you people think?

cheers dzubi

 
webseth

Joined: 2003-06-13
Posts: 33
Posted: Thu, 2003-08-14 14:57

my shell appears to not have "patch" installed, is this something i can install myself like netbpm or do i need root? if i can do it myself where can i download a precompiled ver of the program? thanks

thanks
- Seth

 
dzubi
dzubi's picture

Joined: 2003-08-04
Posts: 22
Posted: Thu, 2003-08-14 15:31
webseth wrote:
my shell appears to not have "patch" installed, is this something i can install myself like netbpm or do i need root? if i can do it myself where can i download a precompiled ver of the program? thanks

thanks
- Seth

you don't absolutely need root access. you could download, compile and run the binary as a normal user. but the easyest way would be to download the official patch package for your distro (but then you need root access)

 
gael

Joined: 2003-08-10
Posts: 14
Posted: Tue, 2003-08-19 22:46

Hi guys,

I have updated the patch to add :
- possibility to mass delete pictures as well.
- configurable max amount of photos to edit at once, to avoid breaking the browser with very large albums : if the album exceeds the maximum (say 100 photos), massedit will first prompt you which 100 photos you want to edit then proceed as before.

I will post the updated version on sourceforge as well.

Gaël.

 
gael

Joined: 2003-08-10
Posts: 14
Posted: Tue, 2003-08-19 22:48
dzubi wrote:
may I suggest a little enhancement for this patch?
It would be nice to have the possibility to make a "mass order". A checkbox by every thumbnail which says "order pix" and at the bottom a combobox where you can choose the lab.

Sorry, but I don't really see what you mean ;)... Could you elaborate on how it would work ?

Gaël.

 
dzubi
dzubi's picture

Joined: 2003-08-04
Posts: 22
Posted: Wed, 2003-08-20 05:53

I mean, for now, you have for every pix the option: "no change", "clockwise", "ccw", "flip", "caption" and "hidden". Why not add the option "order pix from lab". So when you want to order many pix, you don't have to do it one by one, but all at once.

 
SteveWilhelm

Joined: 2003-06-07
Posts: 1
Posted: Wed, 2003-08-20 06:19

I think what dzubi means is to make it possible to select a large number of the pictures to upload and purchase from an online processing laboratory like Shutterfly.

I to was confused by his first post and thought he was asking for a way to reorder the pictures within the album.

 
dzubi
dzubi's picture

Joined: 2003-08-04
Posts: 22
Posted: Wed, 2003-08-20 06:25

you got it :)

 
gael

Joined: 2003-08-10
Posts: 14
Posted: Tue, 2003-11-11 23:29

For those that are interested I have updated the patch for 1.4-pl2 at http://tom.weedns.com/gallery/gallery-1.4-pl2-massedit.patch.
Il will post the updated version on sourceforge as well.

 
peterh

Joined: 2003-07-01
Posts: 34
Posted: Tue, 2004-01-13 12:19

i have patch installed in my system and i have been going through the man pages but i can't figure out this patch file!!! can someone please explain how to apply the patch?

thanks!

 
jacksdad
jacksdad's picture

Joined: 2002-08-24
Posts: 95
Posted: Fri, 2004-01-16 08:43

Okay, I am really lost now..

I went here http://sourceforge.net/tracker/index.php?func=detail&aid=791588&group_id=7130&atid=307130 and D/L the patch....

Edit, I did this:

bash-2.05$ patch -p0 < gallery-1[1].4-pl2-massedit.patch
patching file gallery/mass_edit.php
can't find file to patch at input line 210
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: gallery/view_album.php
|diff -u gallery/view_album.php:1.1.1.2 gallery/view_album.php:1.1.1.1.2.2
|--- gallery/view_album.php:1.1.1.2     Tue Nov 11 19:36:19 2003
|+++ gallery/view_album.php     Tue Nov 11 20:50:40 2003
--------------------------
File to patch: pwd
pwd: No such file or directory
Skip this patch? [y] n
File to patch:
Skip this patch? [y] y
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 224
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: gallery/setup/config_data.inc
|diff -u gallery/setup/config_data.inc:1.1.1.2 gallery/setup/config_data.inc:1.1.1.1.2.3
|--- gallery/setup/config_data.inc:1.1.1.2      Tue Nov 11 19:36:45 2003
|+++ gallery/setup/config_data.inc      Tue Nov 11 23:24:51 2003
--------------------------
File to patch:
Skip this patch? [y] u
Skipping patch.
1 out of 1 hunk ignored

Please oh please help....

Yes I am begging..

Thank you for the code
and
Thank you for the help, in advance.[/b]

 
jacksdad
jacksdad's picture

Joined: 2002-08-24
Posts: 95
Posted: Tue, 2004-01-20 07:26

Anyone :roll: :o

Please :D

 
peterh

Joined: 2003-07-01
Posts: 34
Posted: Tue, 2004-01-20 08:15

how about a mass move option? this would finally allow for combining albums!

p.

 
gael

Joined: 2003-08-10
Posts: 14
Posted: Sat, 2004-01-24 21:48
jacksdad wrote:
Okay, I am really lost now..

I went here http://sourceforge.net/tracker/index.php?func=detail&aid=791588&group_id=7130&atid=307130 and D/L the patch....

Edit, I did this:

bash-2.05$ patch -p0 < gallery-1[1].4-pl2-massedit.patch
patching file gallery/mass_edit.php
can't find file to patch at input line 210
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: gallery/view_album.php
|diff -u gallery/view_album.php:1.1.1.2 gallery/view_album.php:1.1.1.1.2.2
|--- gallery/view_album.php:1.1.1.2     Tue Nov 11 19:36:19 2003
|+++ gallery/view_album.php     Tue Nov 11 20:50:40 2003
--------------------------
File to patch: pwd
pwd: No such file or directory
Skip this patch? [y] n
File to patch:
Skip this patch? [y] y
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 224
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: gallery/setup/config_data.inc
|diff -u gallery/setup/config_data.inc:1.1.1.2 gallery/setup/config_data.inc:1.1.1.1.2.3
|--- gallery/setup/config_data.inc:1.1.1.2      Tue Nov 11 19:36:45 2003
|+++ gallery/setup/config_data.inc      Tue Nov 11 23:24:51 2003
--------------------------
File to patch:
Skip this patch? [y] u
Skipping patch.
1 out of 1 hunk ignored

You need to pass -p1 instead of -p0 to patch.

HTH

 
jacksdad
jacksdad's picture

Joined: 2002-08-24
Posts: 95
Posted: Sun, 2004-01-25 11:08

gael:

Thank you, I tried it and this is the results now:

bash-2.05$ patch -p1 < gallery-1[1].4-pl2-massedit.patch 
The next patch would create the file mass_edit.php,
which already exists!  Assume -R? [n] y
patching file mass_edit.php
patching file view_album.php
Hunk #1 FAILED at 333.
1 out of 1 hunk FAILED -- saving rejects to file view_album.php.rej
can't find file to patch at input line 224
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: gallery/setup/config_data.inc
|diff -u gallery/setup/config_data.inc:1.1.1.2 gallery/setup/config_data.inc:1.1.1.1.2.3
|--- gallery/setup/config_data.inc:1.1.1.2      Tue Nov 11 19:36:45 2003
|+++ gallery/setup/config_data.inc      Tue Nov 11 23:24:51 2003
--------------------------
File to patch: 

Thanks again

 
gael

Joined: 2003-08-10
Posts: 14
Posted: Sun, 2004-01-25 12:31
jacksdad wrote:
bash-2.05$ patch -p1 < gallery-1[1].4-pl2-massedit.patch 
The next patch would create the file mass_edit.php,
which already exists!  Assume -R? [n] y
patching file mass_edit.php
patching file view_album.php
Hunk #1 FAILED at 333.
1 out of 1 hunk FAILED -- saving rejects to file view_album.php.rej
can't find file to patch at input line 224
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: gallery/setup/config_data.inc
|diff -u gallery/setup/config_data.inc:1.1.1.2 gallery/setup/config_data.inc:1.1.1.1.2.3
|--- gallery/setup/config_data.inc:1.1.1.2      Tue Nov 11 19:36:45 2003
|+++ gallery/setup/config_data.inc      Tue Nov 11 23:24:51 2003
--------------------------
File to patch: 

You need to apply the patch to a clean source archive of gallery 1.4-pl2. You can't apply the patch more than once on the same source tree. And the patch might not work well on later versions.

 
xobes

Joined: 2007-08-31
Posts: 12
Posted: Sat, 2007-09-01 00:26

I wondered the same thing, and ended up making it myself for gallery2:

http://gallery.menalto.com/node/68709