Member
Member
kocho   2014-04-28, 23:59
#1

I'm trying to upload video thumbnails to my gallery and they're distorting.

I have my thumbnail width set at 288px wide, "Crop thumbnails" 14.9% top & bottom.

However, when I upload a thumbnail for a video (using the jpg / txt method), its thumbnail distorts both left and right and up and down as you can see here: http://cl.ly/image/3I3l2P0O3I0x

The video thumbnail is the last thumbnail you see, and the youtube play button should appear in the middle of the thumbnail.

I'm not sure what I'm doing wrong, I've tried 288x202 (my default thumbnail size) as a starting point. I thought I might have to make the thumbnail 14.9% taller as a result, which I did, but that didn't help.

Any ideas?

Administrator
Administrator
acrylian   2014-04-29, 07:50
#2

Link to the site maybe? It dependes a bit on the theme and how it generates the thumbs. Some themes don't use teh settings from the options but fixed sizes for layout reasons on the theme itself.

The settings are actually quite a bit tricky because of the percentage values. The plain theme functions and their parameters are a bit easier as you set pixel values there. For example:
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintCustomSizedImage

Member
Member
kocho   2014-04-30, 03:36
#3

Link to website

I'm using the default theme.

Do I set pixel values within template-functions.php and then place this within album.php:

Is that right?

Member
Member
kocho   2014-04-30, 22:51
#4

I'm using the default theme.

Link to website

Do I set pixel values within template-functions.php and then place this within album.php:

Is that right?

Member
Member
kocho   2014-05-02, 05:31
#5

I'm using the default theme.

I'm not exactly sure what to do, but I'm trying to work it out anyway and give it a try. I didn't think it would be this puzzling.

So, printCustomSizedImage seems to be an image function rather than a Thumbnail function? But anyway, you said that it's the solution, so who am I to question..

Anyway, what I thought might be the solution is if I substitute in:

Administrator
Administrator
acrylian   2014-05-02, 08:41
#6

The printCustomSizeImage function is for both thumbs and sized image. The only real difference between both is that thumbs have no watermarks ( the $thumbstandin parameter).

Non image items like video/audio have of course no "sized image" as the "sized image" is the video/audio itself. That Zenphoot of course cannot resize.

`

Member
Member
kocho   2014-05-05, 02:41
#7

Awesome, thanks for your help acrylian.

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