# Image property values confusion

**URL:** <https://forums.solar2d.com/t/image-property-values-confusion/282692>\
**Category:** General Questions/Discussion\
**Created:** [October 22, 2009, 5:51pm UTC](https://forums.solar2d.com/t/image-property-values-confusion/282692 "2009-10-22T17:51:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DGuy](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/d/9de0a6/32.png) [@DGuy](https://forums.solar2d.com/u/DGuy)\
**Post date:** [October 22, 2009, 5:51pm UTC](https://forums.solar2d.com/t/image-property-values-confusion/282692/1 "2009-10-22T17:51:43Z")

</div>

I load up an image that is 512x512 and when I print out its property values I see:

```auto
 x,y: 240, 240  
 xMin,yMin,xMax,yMax: 0, 0, 480, 480  
 width,height: 480, 480  
 xOrigin,yOrigin: 240, 240  
xReference,yReference: 0, 0  
```

Shouldn’t those "240"s be "255"s, and those "480"s be "512"s ?

Note, the image displays fine. [import]uid: 1581 topic\_id: 189 reply\_id: 300189[/import]

---

<div class="post-metadata">

**Author:** ![carlos\_m\_icaza](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/c/bc8723/32.png) [@carlos\_m\_icaza](https://forums.solar2d.com/u/carlos_m_icaza)\
**Post date:** [October 22, 2009, 6:14pm UTC](https://forums.solar2d.com/t/image-property-values-confusion/282692/2 "2009-10-22T18:14:28Z")

</div>

Can you send me the image and code snipplet ?

Carlos [import]uid: 24 topic\_id: 189 reply\_id: 212[/import]

---

<div class="post-metadata">

**Author:** ![DGuy](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/d/9de0a6/32.png) [@DGuy](https://forums.solar2d.com/u/DGuy)\
**Post date:** [October 22, 2009, 6:19pm UTC](https://forums.solar2d.com/t/image-property-values-confusion/282692/3 "2009-10-22T18:19:01Z")

</div>

Hmmmm, … I just noticed that my 512x512 image is being loaded/displayed as 480x480.

I load up a 256x256 image and the image is loaded/displayed as a 256x256.

So the question becomes:

Why is the 512x512 image being scaled to 480x480? [import]uid: 1581 topic\_id: 189 reply\_id: 214[/import]

---

<div class="post-metadata">

**Author:** ![carlos\_m\_icaza](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/c/bc8723/32.png) [@carlos\_m\_icaza](https://forums.solar2d.com/u/carlos_m_icaza)\
**Post date:** [October 22, 2009, 6:20pm UTC](https://forums.solar2d.com/t/image-property-values-confusion/282692/4 "2009-10-22T18:20:50Z")

</div>

We scale to fit the screen. That’s why.

Maybe that should not be the default. We should have a parameter that autoscales.

Carlos

[import]uid: 24 topic\_id: 189 reply\_id: 215[/import]

---

<div class="post-metadata">

**Author:** ![DGuy](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/d/9de0a6/32.png) [@DGuy](https://forums.solar2d.com/u/DGuy)\
**Post date:** [October 22, 2009, 6:38pm UTC](https://forums.solar2d.com/t/image-property-values-confusion/282692/5 "2009-10-22T18:38:18Z")

</div>

For the sake of completeness, here’s the project which loads up the two images and logs out their stats:

[http://dl.getdropbox.com/u/105420/Corona%20Samples/512x512\_Loaded\_As\_480x480.zip](http://dl.getdropbox.com/u/105420/Corona%20Samples/512x512_Loaded_As_480x480.zip)

Notice, I’ve placed a magenta line at the top and bottom of the 512x512 image.

As to the fact that Corona is scaling the image to screen size: I totally agree with **NOT** doing that by default. If the user wants it scaled, let’em scale it themselves. [import]uid: 1581 topic\_id: 189 reply\_id: 216[/import]

---

<div class="post-metadata">

**Author:** ![carlos\_m\_icaza](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/c/bc8723/32.png) [@carlos\_m\_icaza](https://forums.solar2d.com/u/carlos_m_icaza)\
**Post date:** [October 22, 2009, 6:52pm UTC](https://forums.solar2d.com/t/image-property-values-confusion/282692/6 "2009-10-22T18:52:15Z")

</div>

We will add this as a bug and feature request an extra parameter to NOT autoscale.

Carlos

ps: nice images.

[import]uid: 24 topic\_id: 189 reply\_id: 217[/import]
