Member
Member
jnylund   2008-12-15, 16:34
#1

Hello!

I have been wondering how I could edit following code so that I could determine width and height of random image. I tried almost everything.

...and is it somehow possible to turn that random image to grey but the orginal (when clicking the link) would stay coloured.

Administrator
Administrator
acrylian   2008-12-15, 17:18
#2
  1. You can get the width and height of that image with $randomImage->getWidth()/$randomImage->getHeight(). Or what do you mean?

  2. There is not Zenphoto function for this but you probably can something for that using the GDLib's functions.

Member
Member
jnylund   2008-12-15, 17:24
#3

Oh sorry, I spelled wrong.

I meant that I could adjust the thumb size without touching getSizedImage(150x130)

or something with working function.

Member
Member
sbillard   2008-12-15, 18:42
#4

The Effervescence+ theme uses the image size in creating the surrounding frame. You can look at that theme to see how it does this.

There are a number of custom image thumb functions depending on what you want to accomplish. Please search the functions guide for these functions.

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