imagemagick - Create dynamic textual high DPI images with PHP -
i use php gd library.
my goal to create textual images printing stamps 600dpi.
in order that, , due limitation of gd library, tried factorize sizes of width, height , font , resize it. unfortunately did not help.
is possible set dpi of generated images in gd library? if not, there alternatives?
if not possible in php, please refer me else.
i'm not sure sort of things trying create exactly, may have luck imagemagick free , installed on linux distros, , available osx , windows too.
you can maybe have play around @ command-line commands this, see if can meet needs, convert php, perl, ruby or other languages imagemagick has bindings.
convert -density 600 -units pixelsperinch \ -size 2500x2000 gradient:red-blue \ -pointsize 14 -font trattatello \ -gravity southeast \ -fill black -stroke white -strokewidth 2 \ -draw "text 25,25 'go imagemagick'" image.jpg 
check have created identify:
identify -verbose image.jpg output
format: jpeg (joint photographic experts group jfif format) mime type: image/jpeg class: directclass geometry: 2500x2000+0+0 resolution: 600x600 print size: 4.16667x3.33333 units: pixelsperinch type: truecolor ... ... you can use pango or postscript if have more complicated layout needs. there many examples here.
Comments
Post a Comment