4 ms·
Is there an alternative that doesn't require a monthly subscription?
by jasonkostempski 10y ago
Is there an alternative that doesn't require a monthly subscription?
- criddell 10y agohttp://www.imagemagick.org/script/convert.php http://www.imagemagick.org/script/convert.php You can insert ImageMagick somewhere into your production pipeline. It's excellent software.
- lmm 10y agoWell other than being riddled with security holes. It has its place, but never use it on user-submitted images.
- microcolonel 10y agoWhile that may have been true in 2014, today it's hard to find an exploitable bug affecting a major image format parser in ImageMagick. Assuming you aren't using unsanitized user-provided parameters on the command line with it, it should be fine unless your attacker is very motivated.
- nitrogen 10y agoThere was an RCE vulnerability this year: https://imagetragick.com/ https://imagetragick.com/
- tetromino_ 10y agoImageTragick did not affect major image formats; it was a vulnerability in the parser for ImageMagick's scripting languages [1]. The real problem was that support for scripting was enabled by default, and there was no obvious big red button to disable it. [1] Like MVG (http://www.imagemagick.org/script/magick-vector-graphics.php http://www.imagemagick.org/script/magick-vector-graphics.php) and MSL (http://www.imagemagick.org/script/conjure.php http://www.imagemagick.org/script/conjure.php)
- criddell 10y agoWell, the person I'm responding to is using Photoshop to resize images. Presumably that isn't for user submitted content.
- Veratyr 10y agoI'd argue that you should simply sandbox it. If performance is an issue, throw it in a VM or container with a simple socat + fork + TCP-LISTEN on a socket and pipe data in/out over TCP.
- walshemj 10y agoThere is jpegtran and other cli based tools - but PS does tend to perform better.
- driverdan 10y agoImageOptim is better than PS: https://imageoptim.com https://imageoptim.com You still need to resize your images appropriately but ImageOptim will do the rest. It passes images through a series of image optimization libs.
- theandrewbailey 10y agoYou can get some pretty good images out of almost any image editing software, even GIMP. First, know which format to use, and size your image appropriately. For JPEGs: use chroma downsampling, and don't go above 80% quality unless absolutely necessary. If your software has a preview function, use it. Encode with MozJPEG if you can. For PNGs: compress the hell out of them. There's several tools that can compress them further.
- pbhjpbhj 10y agoSave For Web is a useful plugin for GIMP to this end.
- Xixi 10y agoIf you are using a Mac I recommend this little known gem: Graphic Converter. It supports hundreds of image formats. First used it on System 7, such a long time ago! It has of course been ported to MacOS X / OS X / macOS. https://www.lemkesoft.de/en/products/graphicconverter/ https://www.lemkesoft.de/en/products/graphicconverter/