So many copies of images

Nimit

Joined: 2012-01-18
Posts: 3
Posted: Wed, 2012-01-18 13:29

Hey, I want to contribute to this Open Source project. I was going through the files that are created when we create a new album on Gallery. There are 3 copies of all the images. One in the album folder, one in thumbs and one in resizes. Can you please explain, why is it so?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2012-01-18 14:36

One for each size of image displayed. Thumbnail, resized version and full-size original (though this can get edited if you rotate, but can be kept if you use the 3rd party "Keep Originals" module)

____________________________________________
Like Gallery? Like the support? Donate now!

 
Nimit

Joined: 2012-01-18
Posts: 3
Posted: Wed, 2012-01-18 14:43

Why can't simply keep a single image and show it in required sizes using the width and height attributes of img?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2012-01-18 14:51

Lets say you have a bunch (20+) of 4+ meg images in an album. Why would we deliver 80+ megs of images when the user might only want to see some of the thumbnails?
This is standard practice to help with download times and bandwidth usage.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Nimit

Joined: 2012-01-18
Posts: 3
Posted: Wed, 2012-01-18 15:17

okay! Didn't think of that! :)