GraphicsMagick corrupts TIFF upon PDF conversion
FYI, there appears to be a bug with GraphicsMagick. gm convert -density 600x600 illustration.tif m_k_i_v_illustration.tif.pdf Produces: 38812848 Dec 15 22:51 m_k_i_v_illustration.tif.pdf https://i.imgur.com/EByrH6r.png Whereas ImageMagck: convert -density 600x600 illustration.tif m_k_i_v_illustration.tif.pdf Produces: 42343236 Dec 15 22:52 m_k_i_v_illustration.tif.pdf https://i.imgur.com/9DxRVW2.png Re: https://wiki.contextgarden.net/Using_Graphics#Image_Conversion Since GraphicsMagick is used by ConTeXt, is there a way to force ConTeXt to use ImageMagick instead? Thank you!
On 12/16/2019 7:59 AM, Thangalin wrote:
FYI, there appears to be a bug with GraphicsMagick.
gm convert -density 600x600 illustration.tif m_k_i_v_illustration.tif.pdf
Produces:
38812848 Dec 15 22:51 m_k_i_v_illustration.tif.pdf https://i.imgur.com/EByrH6r.png
Whereas ImageMagck:
convert -density 600x600 illustration.tif m_k_i_v_illustration.tif.pdf
Produces:
42343236 Dec 15 22:52 m_k_i_v_illustration.tif.pdf https://i.imgur.com/9DxRVW2.png
Re: https://wiki.contextgarden.net/Using_Graphics#Image_Conversion
Since GraphicsMagick is used by ConTeXt, is there a way to force ConTeXt to use ImageMagick instead? something like this
\startluacode figures.converters["jpg"]["lowres.jpg"] = function(oldname,newname,resolution) os.execute(string.format( 'gm convert -density %ix%i "%s" "%s"', resolution,resolution,oldname,newname)) end \stopluacode \starttext \externalfigure [t:/sources/hacker.jpg] [conversion=lowres.jpg,resolution=50,width=10cm] \stoptext with gm replaced by whatever is needed to call imagemagick Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Thangalin