Externally resizing pictures

paganini

Joined: 2002-09-08
Posts: 3
Posted: Sun, 2002-09-08 22:56

Hello All,

Is there a way to "mass resize" pictures in gallery? I have around 420 pictures in my photo gallery and they are taking a considerable space on the HD. Most people won't bother downloading large pictures anyway so I decided to "downgrade" them to a more reasonable size.

My first idea was to change to my picture directory and do:

find . -name '???.jpg' -exec jhead -cmd "mogrify -quality 95 -geometry '800x600>' &i" "{}" ;

This indeed scales pictures down to the size and quality I want, but gallery will "stretch" the pictures when the user clicks on the ".sized" version. :???:

Is there a way to avoid this or to "rescan" the size of the pictures?

Regards,
Paga

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Tue, 2002-09-10 00:14

Did you reset your 'resize' size in the configuration process so that it
matches the size you resized all your pics to?

 
paganini

Joined: 2002-09-08
Posts: 3
Posted: Tue, 2002-09-10 02:56

Hello,

Well, you got me confused here. I'm supposing the "resize" option applies to the .sized pictures no?

What I mean is: I have the original pics (1800x1200), the "sized" version (600x400) and the thumbnails. I want to resize the originals to 800x600 but they get "stretched" (the "sized" version is OK).

Regards,
Paga

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2002-09-10 03:40

The problem is that you resized the photos by hand, but Gallery has no idea that you did this. So when it lays out the page it uses the dimensions that it knows about. You'd have to write some custom code to update the Gallery database in order to synchronize them. If you're a developer, it's not that difficult. If not, it's probably going to be very, very hard. You'll probably find it easier to remove and re-upload the photos.

 
paganini

Joined: 2002-09-08
Posts: 3
Posted: Wed, 2002-09-11 22:01

Hello Bharat,

Thanks for the reply.

I can develop something to do that. I'll try and see what I can do (and perhaps, make it available to the rest of the gallery community!)

Thanks for the great product,
Paga