Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • Thanks. If you are interested, I found how google is doing this. Commented Mar 21, 2014 at 7:08
  • I think it's more reliable to check convert -list format instead. I have JPEG2000 in the compress options but not in the formats, and the result is convert -compress jpeg2000 00001.tif 00001.pdf convert: delegate library support not built-in 00001.pdf' (JP2) @ error/pdf.c/WritePDFImage/1283.` Commented Oct 6, 2015 at 13:04
  • (As suggested by imagemagick.org/discourse-server/viewtopic.php?p=120932#p120932 ) Commented Oct 6, 2015 at 13:50
  • Note, you can define a target size with jpeg:extent, e.g. convert -define jpeg:extent=400KB. imagemagick.org/discourse-server/viewtopic.php?t=15386 Commented Jan 25, 2016 at 11:08
  • 1
    convert is never lossless if you output to a lossy format. therefore this part is off-topic. Commented Dec 18, 2018 at 15:50