Image is small

YoWindow widget Questions, Suggestions and Bugs
Post Reply
Yanek

Image is small

Post 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.
Attachments
pogoda.jpg
pogoda.jpg (195.09 KiB) Viewed 6707 times
ikarus1969
Posts: 1645
Joined: Wed Nov 18, 2009 9:58 am
Location: Vienna, Austria

Re: Image is small

Post 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?
»Man is impressive. In a universe full of untold secrets he has invented boredom.«
Yanek

Re: Image is small

Post 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
ikarus1969
Posts: 1645
Joined: Wed Nov 18, 2009 9:58 am
Location: Vienna, Austria

Re: Image is small

Post 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)!
»Man is impressive. In a universe full of untold secrets he has invented boredom.«
ikarus1969
Posts: 1645
Joined: Wed Nov 18, 2009 9:58 am
Location: Vienna, Austria

Re: Image is small

Post 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
»Man is impressive. In a universe full of untold secrets he has invented boredom.«
Yanek

Re: Image is small

Post by Yanek »

Is this a problem converting png to the swf?
ikarus1969
Posts: 1645
Joined: Wed Nov 18, 2009 9:58 am
Location: Vienna, Austria

Re: Image is small

Post 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.
»Man is impressive. In a universe full of untold secrets he has invented boredom.«
User avatar
par
Posts: 8647
Joined: Mon Sep 21, 2009 11:56 am
Name: Pasha
Location: Saint-Petersburg, Russia
Contact:

Re: Image is small

Post 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.
Get YoWindow weather app for your phone or tablet.

Image Image Image
Yanek

Re: Image is small

Post 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.
Post Reply