Personal Video Database
English => Support => Topic started 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.
-
Yeah, it looks like a bug. Will be fixed in the next plugin version.
-
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.
-
So you want the image to always take the smaller sizes?
-
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?
-
OK, so will it be