Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: How to increase the resoultion of an PNG image

by Anonyrnous Monk (Hermit)
on Dec 18, 2010 at 20:18 UTC ( [id://877795]=note: print w/replies, xml ) Need Help??


in reply to How to increase the resoultion of an PNG image

Not really sure what you mean by resolution of the PNG image. As the PNG format stores pixels, the resolution of an (unscaled) image only depends on the resolution of the viewing device (such as a monitor). In other words, the trivial approach to a more detailed image would be to create a larger image, with drawing coordinates, font sizes, etc. adjusted accordingly. I suppose this occurred to you already... which is why I'm asking what you mean by resolution.

If it's that the text/lines in the image look "ragged", you (or your boss) might actually want antialiasing, which makes the image appear smoother to the human eye (by reducing spatial sampling artifacts). GD offers gdAntiAliased color for drawing, but I think for text only TrueType fonts provide antialiasing (method stringFT()).

  • Comment on Re: How to increase the resoultion of an PNG image

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://877795]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (9)
As of 2024-04-23 08:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found