Announcement

  •  » Requests
  •  » Two different thumbs for catalog and picture page

#1 2006-08-11 14:43:50

Overcast
Member
2006-08-11
2

Two different thumbs for catalog and picture page

Thank's for such a great gallery! Only one question :) Is it possible to create a thumb from the original picture file and show it instead of original picture in "picture page"? I mean: is it possible to create two different thumbs for all files (one for catalog (small size) and other for picture page)?

P.S. Sorry for my language.

Offline

 

#2 2006-08-11 15:16:33

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: Two different thumbs for catalog and picture page

It works like you described in fact.

In any /galleries/ subdirectory, you can place:

- my_image.jpg (any size maybe thumb size as well, call that size normal size)
- thumbnail/TN-my_image.png (in thumb size for catalog pages)
- pwg_high/my_image.jpg (Optional, same image name than parent directory but in original size or any other)

I used .jpg, .png and TN- as the preconised standard.
Think also that all these pictures can be different not only in size but also in content or aspect (normal size can be 300x224 in black&white, thumb in 128x96 and sepia, and high if they are available in 2048x1492 in true colors).

Enjoy PWG !!!


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#3 2006-08-11 15:27:57

Overcast
Member
2006-08-11
2

Re: Two different thumbs for catalog and picture page

Thank's a lot! But in picture.tpl: {SRC_IMG} means "my_image.jpg" as you say, not "pwg_high/my_image.jpg". Can i change it?

Offline

 

#4 2006-08-11 15:38:21

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: Two different thumbs for catalog and picture page

Don't change anything try it as I described.
You'll get a link below the normal picture to show pwg_high picture in a new window.


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 
  •  » Requests
  •  » Two different thumbs for catalog and picture page

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact