thumbnails size and different watermarks

exsperman

Joined: 2013-03-18
Posts: 1
Posted: Mon, 2013-03-18 04:01

Hello,

I need to create thumbnails of different size in each albums, is it possible?

I can put different watermarks on the photos that are uploaded? or must be the same in all the photos?

Thanks

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2013-03-18 13:33

You might be interested in http://codex.galleryproject.org/Gallery3:Modules:emboss

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Mon, 2013-03-18 14:04
exsperman wrote:
thumbnails of different size in each albums

A few methods come to mind; all require some coding and selective application of styles. Could maybe be done with a module, but that's not my specialty.
If you don't know how to code, you'll have a difficult time doing this.

One method would be to use a number of if statements to check the album id and to size accordingly. A better way would be to use the custom fields module to define the dimensions of each album's thumbs, then use that value (if present; if no defined value, fall back to defaults).

EDIT: Also, similar thread with similar considerations: http://galleryproject.org/node/104109

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2013-03-18 14:11

you could also resize through css by adding a class to the <body /> say using the parent_id something like:

<body class="album-<?= $item->parent_id ?>">

then in css:

.album-19 .thumbnail{
  width: 250px;
  height: auto;
}
.album-31 .thumbnail{
  width: 150px;
  height: auto;
}

your thumbs would need class <img class="thumbnail" />
you would want the real thumb to be at least as big as the largest thumb size as down scaling looks fine but up scaling can cause artifacts.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Mon, 2013-03-18 15:06
suprsir wrote:
you could also resize through css by adding a class to the <body /> say using the parent_id something like:

Ha! Never would've thought of that.