Author Topic: Bug report: resizing of posters (as defined within export templates)  (Read 7743 times)

0 Members and 4 Guests are viewing this topic.

Offline svenne

  • Power User
  • ****
  • Posts: 145
    • View Profile
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.

Offline nostra

  • Administrator
  • *****
  • Posts: 2852
    • View Profile
    • Personal Video Database
Yeah, it looks like a bug. Will be fixed in the next plugin version.
Gentlemen, you can’t fight in here! This is the War Room!

Offline svenne

  • Power User
  • ****
  • Posts: 145
    • View Profile
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.
« Last Edit: May 04, 2010, 01:13:35 pm by svenne »

Offline nostra

  • Administrator
  • *****
  • Posts: 2852
    • View Profile
    • Personal Video Database
So you want the image to always take the smaller sizes?
Gentlemen, you can’t fight in here! This is the War Room!

Offline svenne

  • Power User
  • ****
  • Posts: 145
    • View Profile
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?

Offline nostra

  • Administrator
  • *****
  • Posts: 2852
    • View Profile
    • Personal Video Database
OK, so will it be
Gentlemen, you can’t fight in here! This is the War Room!

 

anything