Personal Video Database

English => Support => Topic started by: svenne on April 08, 2010, 04:46:47 pm

Title: Bug report: resizing of posters (as defined within export templates)
Post by: svenne on April 08, 2010, 04:46:47 pm
Some strange behaviour when exporting poster images via template...
I would suppose the following line to resize every poster image that is wider than 350px, but it does not.
{%value=poster width="350" height="500"}
If a poster image is smaller than 500px in height, it can be a million trillion px wide ;) without being resized.
Title: Re: Bug report: resizing of posters (as defined within export templates)
Post by: nostra on April 08, 2010, 05:47:09 pm
Yeah, it looks like a bug. Will be fixed in the next plugin version.
Title: Re: Bug report: resizing of posters (as defined within export templates)
Post by: svenne on May 04, 2010, 01:11:16 pm
I think, at least something has changed with version 0.9.9.21, but it still doesn't work. Consider the following code:

{%value=poster maxvalues="1" width="50" height="1000"}

Any poster wider then 50 pixels should be shrinked to 50 pixels in width while preserving aspect ratio. Actual behaviour it is quite strange, because now (if it's smaller than 1000 pixels in height) it is going to be stretched to 1000 pixels in height while preserving aspect ratio. So it gets even wider than it was originally.
Title: Re: Bug report: resizing of posters (as defined within export templates)
Post by: nostra on May 04, 2010, 02:06:26 pm
So you want the image to always take the smaller sizes?
Title: Re: Bug report: resizing of posters (as defined within export templates)
Post by: svenne on May 06, 2010, 11:36:13 am
Yes, at least that was what I expected, since it says on the help page:

width - Maximum image width (The image will be resized to fit)
height - Maximum image height (The image will be resized to fit)

I supposed this to be like CSS max-width and max-height: that the image will never be wider than "width" and never be taller than "height" while aspect ratio is preserved?
Title: Re: Bug report: resizing of posters (as defined within export templates)
Post by: nostra on May 06, 2010, 10:00:35 pm
OK, so will it be