Member
Member
kjtooke   2008-08-31, 11:45
#1

For main image (not full size, not thumb), it would be useful to be able to set a maximum canvas area that the image can use.

Currently, image size is either set by width or longest edge.

This feature would effectively also allow it to be set by height.

Member
Member
sterk   2008-08-31, 11:56
#2

printCustomSizedImage
printCustomSizedImageMaxHeight

Administrator
Administrator
acrylian   2008-08-31, 12:33
#3

printCustomSizedImageMaxHeight is somehow considered as depractated and that functionality is already on the to do list.

Meanwhile you could try this code that is more reliable than the function above on your image.php (works for thumbnails except album thumbs, too):
if (getFullWidth() === getFullHeight() OR getFullWidth() > getFullHeight()) { printCustomSizedImage(getImageTitle(), null, , null); } else { printCustomSizedImage(getImageTitle(), null, null , ); }

Member
Member
kjtooke   2008-08-31, 14:59
#4

I'll try that...

Thanks

Member
Member
kjtooke   2008-08-31, 15:07
#5

That works, thanks again...


-)


Member
Member
kjtooke   2008-08-31, 16:08
#6

The only downside I have found with this temporary code is that the watermark is scaled...

Member
Member
sterk   2008-08-31, 16:38
#7

according to:

http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintCustomSizedImage

you can turn the watermark off, but it's not working for me. i tried:

Member
Member
sbillard   2008-08-31, 19:38
#8

Did you clear your cache? If the image is already cached with a watermark, no amount of code changes will get rid of it, only a cache clear.

Member
Member
sterk   2008-08-31, 19:49
#9

yes i cleared the cache. the new created tumbnails still have the watermark with this code:

Member
Member
sbillard   2008-08-31, 20:12
#10

Congratulations, you forced me to go read the document. Maybe you should have done so as well: bool $thumbStandin: set true to inhibit watermarking

Member
Member
sterk   2008-08-31, 20:21
#11

alright, english is not my first language and i struggled with the word "inhibit" (thought it was something like "include"), therefore i tried both false and true, only with true i didnt clear the cache.

but it's working now properly and i learned a new word, damn you guys are good

Administrator
Administrator
acrylian   2008-09-01, 08:27
#12

Sterk, I had to look into a dictionary as well, since english is not my first language, too..:-)

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.