images not resizing in region in layout designer

Asked by Shahid

Ran into an odd issue. After uploading a failry large dimension image of gif or jpeg variety, the image will not resize to fit the field IN THE LAYOUT DESIGNER (only capping to not cause confusion). It does resize appropriately in the player to fit the region size. But what I have in the layout designer is a row of 3 regions of various size with a picture in each region that overruns the entire screen. If you need more detail I can probably get a screenshot. Any ideas?

As usual thanks for your efforts on this!
Shahid

-_-_-_-_-_-_-
Spreading the Xibo goodness!

Question information

Language:
English Edit question
Status:
Solved
For:
Xibo Edit question
Assignee:
No assignee Edit question
Solved by:
Dan Garner
Solved:
Last query:
Last reply:
Revision history for this message
Alex Harrington (alexharrington) said :
#1

Hi Shahid

Presumably you've:
1. Cleared your browser cache
2. Clicked the blue advance arrow in the region to cause the image to refresh

In that case, I think a screenshot would be helpful please. Also the original images if possible. Both to <email address hidden>.

Cheers

Alex

Revision history for this message
Alex Harrington (alexharrington) said :
#2

Oh, and version please. There were some changes to the layout designer around 1.0.2/1.0.3 IIRC so we'll need to know.

Alex

Revision history for this message
Shahid (smalik-albion) said :
#3

Sure thing: Screenshot http://img.photobucket.com/albums/v223/omegagenesis/Layout1.jpg
Version 1.0.3

1) Same thing happens in multiple browsers on separate PC's, IE/Firefox different versions, etc...
2) Scrolling through with the blue arrows just shows more pictures (it's a playlist of pics)

Revision history for this message
Dan Garner (dangarner) said :
#4

As you said, very odd!

Basically the image is requested through the library with a Width / Height. What is odd is that the code ignores images of type GIF and returns them with the original size - I am not sure why this is.

You mentioned that this was also happening with JPEG's?

Ill investigate why we make no attempt to resize GIFs.

Cheers

Revision history for this message
Shahid (smalik-albion) said :
#5

WHOOPS! My apologies. JPEGs work ok, it is GIF's that are the problem. (Just verified this on the server's media storage folder)

Revision history for this message
Best Dan Garner (dangarner) said :
#6

Ah ok! That is a relief... I think the rational for not resizing GIF was that PHP (GD specifically) had problems resizing animated GIFS - i.e. it only resized the first frame and broken the animation.

I'll create a bug for this and see what I can do for 1.0.5

Cheers,
Dan

Revision history for this message
Shahid (smalik-albion) said :
#7

Thanks Dan Garner, that solved my question.