image unit of measurement
-
I am having an issue trying to get a particular image to line up with a theme I am building.
what is the unit of measurement ES uses?
right now I have it set as:<size>0 0.502</size> ....but I know it isn't pixels or inches.. any ideas?
-
@dra6n It's percents. from 0 to one. You can make a photoshop document and add a 100x100 grid.
@mattrixk said in Fundamental Theme:
I get my sizes from a 1280x720 photoshop file. I set the size to percent (instead of pixel) and have a 100x100 grid, so each grid line is at 1% width or height. I find it works really well for me.
-
@lilbud thanks! this will help me a lot!
-
Just digging this thread up to add that I made a little web-based tool to help calculate these "normalized numbers":
https://blog.omgmog.net/px2norm/
You put your theme's target resolution in the first two boxes, e.g.
1920
and1080
, then in the second two you put thex
andy
in actual pixels of the point you want to know. Then when you press the "Calculate" button it will give you the normalized numbers. -
@omgmog Cool app! ;)
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.