Page 1 of 1

Image is small

Posted: Wed Apr 06, 2011 9:15 am
by Yanek
I have this problem. Image on my website is very small. I did everything as instructed, but the picture came out much less.Just as in the attached file.

Re: Image is small

Posted: Wed Apr 06, 2011 9:31 am
by ikarus1969
Hi Yanek!

Please don't let me be misunderstood but just lean back and reflect: would you yourself know what to do alone with the information in your post? I don't :unknown: (i see a picture and know it's too small for you. And that's it.)

so please provide some more things:
Link to your website?
Or sourcecode you have used on your site?
What have you done exactly? Which instructions did you follow?
What's the size you like to have?

Re: Image is small

Posted: Wed Apr 06, 2011 12:56 pm
by Yanek
OOk.

This is my website
http://cms.wkrasniku.pl/

This is sourcecode in my site

Code: Select all

<span>
<div style="width: 220px; height: 150px;">
<object data="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" type="application/x-shockwave-flash" height="150" width="220">
<param name="data" value="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" />
<param name="allowfullscreen" value="true" />
<param name="wmode" value="opaque" />
<param name="bgcolor" value="#FFFFFF" />
<param name="src" value="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" />
<param name="flashvars" value="location_id=767623&time_format=24&lang=pl&unit_system=metric&landscape=http://cms.wkrasniku.pl/landscapes/r_rynek0003/r_rynek0003.ywl" />
<param name="movie" value="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" /><a href="http://yowindow.com?client=widget&link=stub" style="width: 220px; height: 150px; display: block; text-indent: -50000px; font-size: 0px; background: #DDF url(http://yowindow.com/img/logo.png) no-repeat scroll 50% 50%;">Desktop weather</a>
</object>
</div>
</span>
I would like to size the width of the window or 240 px

Re: Image is small

Posted: Wed Apr 06, 2011 1:01 pm
by ikarus1969
Thanks for the additional info!

In the code for the widget there are several "width"s set to 220. Please try to change it to 240 (as you've said you want the width to be 240) and look if that helps.

Please tell us if you succeed (or if setting the new width was not enough)!

Re: Image is small

Posted: Wed Apr 06, 2011 1:09 pm
by ikarus1969
With that picture you always will have bars on the left and on the right of the widget.
YoWindow centers the picture within the box you define (by width and height) to not distort it.
Reason for the bars: your picture has a different relation than you have defined for the widget:

Widget: 220x150 = 1,466666
Picture (resized by YoWindow): 145x97 = 1,495

Re: Image is small

Posted: Thu Apr 07, 2011 8:44 am
by Yanek
Is this a problem converting png to the swf?

Re: Image is small

Posted: Thu Apr 07, 2011 10:45 am
by ikarus1969
Yanek wrote:Is this a problem converting png to the swf?
No.
As i said it's the relation between width and height of the picture and that YoWindow does not stretch it to fill the container you have defined to not distort it.

Re: Image is small

Posted: Fri Apr 08, 2011 8:46 am
by par
Here is a little tip.
If you want YoWindow to stretch the landscape horizontally, try to shrink picture height.
Cut 1/4 picture at the top, where the sky is.

Re: Image is small

Posted: Fri Apr 08, 2011 12:51 pm
by Yanek
par wrote:Here is a little tip.
If you want YoWindow to stretch the landscape horizontally, try to shrink picture height.
Cut 1/4 picture at the top, where the sky is.
It worked! Thank you very much.