* GraphicsMagick corrupts TIFF upon PDF conversion
@ 2019-12-16 6:59 Thangalin
2019-12-16 9:37 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Thangalin @ 2019-12-16 6:59 UTC (permalink / raw)
To: mailing list for ConTeXt users
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!
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: GraphicsMagick corrupts TIFF upon PDF conversion
2019-12-16 6:59 GraphicsMagick corrupts TIFF upon PDF conversion Thangalin
@ 2019-12-16 9:37 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2019-12-16 9:37 UTC (permalink / raw)
To: mailing list for ConTeXt users, Thangalin
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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-12-16 9:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-16 6:59 GraphicsMagick corrupts TIFF upon PDF conversion Thangalin
2019-12-16 9:37 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).