Pages (2):    1 2
Member
Member
sbillard   11-05-2009, 16:08
#11

Did you use the code above? The error you are getting indicates that the $thumb variable was not setup. I don't really see how that could happen, though.

Member
Member
Megan   11-05-2009, 16:14
#12

It's getting a url for the $thumb, it's the getHeight/getWidth that doesn't work. This is what I have right now just for testing:

`

`

Member
Member
sbillard   11-05-2009, 16:28
#13

Ok, sorry, my fault. I gave you the wrong function to use. Change getAlbumThumb() to $_zp_current_album->getAlbumThumbImage() Of course, the echo ''.$thumb.' '; will also need to change since $thumb is an image object. echo ''.$thumb->getThumb('album').' '

Member
Member
Megan   11-05-2009, 18:46
#14

That's much better!

Now for one more small problem:

When I render the tumbnails using printCustomAlbumThumbImage it's setting the height and width attributes of the `` to the value of cropx and cropy. In template_functions.php it looks like it's is choosing whichever is higher, width or cropx, and then setting the width="" attribute to that (???). Since cropx is relative to the [i]original[/i] image it's going to be bigger than the thumb size. So I get thumbnails that are resized using the height/width attributes to something like 1450 x 1450 (or whatever the size of the original image was).

I can fix this by changing max to min or just removing the $settings variable from the ``. It is generating the thumbnails correctly.

Here's my current function:

`

`

Member
Member
sbillard   11-05-2009, 19:26
#15

I'll have to look into how to deal with this issue. The sizing is really only needed if there is no album thumb image. In the mean time, just set $sizing to "".

Member
Member
sbillard   11-05-2009, 20:05
#16

Ok, I've made some changes to the development stream to deal with this. Install tonight's nightly for the correction.

Pages (2):    1 2
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.