This forum has been archived. All content is frozen. Please use KDE Discuss instead.

pixel perfect?

Tags: None
(comma "," separated)
dherring
Registered Member
Posts
2
Karma
0
OS

pixel perfect?

Thu Jun 17, 2010 5:11 am
Hi,

I am trying to create a 720x480 pixel image in Krita. It should contain a 300x150 pixel jpeg image, some centered text, and maybe a couple other details. Krita and I do not understand each other.

Steps so far:
* create a custom document, 720x480 px, resolution 100
* select image shape tool, click on canvas, open the 300x150 px image
- Why does it look the wrong size? The geometry dock says it is 225x113, but it appears to have been enlarged. Selecting 300x150 in the geometry dock definitely shows artifacts.
- Why do the rulers show my canvas is ~520x350?
* select text tool, click on canvas
* select geometry dock, specify 702 px wide
- Why does the text extend outside the canvas? Maybe the rulers are telling the truth?

Help? I'm using Krita 2.1.2 from koffice.

Thanks,
Daniel
User avatar
LukasT.dev
KDE Developer
Posts
209
Karma
1
OS

Re: pixel perfect?

Thu Jun 17, 2010 6:46 am
>Why do the rulers show my canvas is ~520x350?

There is a bug, we show the size in pts not pixels. Feel free to report it.

>Why does the text extend outside the canvas? Maybe the rulers are telling >the truth?

I suppose pt vs. pixel issue here too.

>Help? I'm using Krita 2.1.2 from koffice.

Maybe try to update, Krita 2.2 is up-to-date release.
But I don't think those bugs are fixed in 2.2, but it is always better to be much more up-to-date with Krita ;)


Daylight is coming...
Krita developer | http://lukast.mediablog.sk/log
slangkamp
KDE Developer
Posts
607
Karma
4

Re: pixel perfect?  Topic is solved

Thu Jun 17, 2010 12:17 pm
There is a problem with shape layers having a different internal resolution than the other layers.

Until it is fixed, you can calculate the correct values this way:
newWidth = width/(resolution/72)

So in your case that would be 720/(100/72) = 518 for the text.

Sorry for the inconvenience.
dherring
Registered Member
Posts
2
Karma
0
OS

Re: pixel perfect?

Fri Jun 18, 2010 3:22 am
> Until it is fixed, you can calculate the correct values this way:
> newWidth = width/(resolution/72)

Thanks for the info. I created a new image with resolution=72. Now 1px=1pt, and everything looks good.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Google [Bot], Sogou [Bot]