Giter Site home page Giter Site logo

Comments (13)

activestylus avatar activestylus commented on June 1, 2024 4

Libvips is a far superior to Image magick https://github.com/jcupitt/libvips

from crystal-libraries-needed.

megatux avatar megatux commented on June 1, 2024 1

Some weeks ago a saw [this one] (https://github.com/naqvis/crystal-vips)

from crystal-libraries-needed.

straight-shoota avatar straight-shoota commented on June 1, 2024

Though they are the de-facto standard for image manipulation, ImageMagick is a huge security risk. GraphicsMagick is way better, but still has lots of issues. I'd rather try to find a secure and stable image manipulation library to use in Crystal. I'm not sure about reasonable alternatives but we might as well look for it...
There is a proposal for VIPS #27 which is way faster but still relies on libmagick for less common image types. This was incorrect: libvips can use libmagick as a fallback but will use other libs if available

from crystal-libraries-needed.

veelenga avatar veelenga commented on June 1, 2024

magickwand-crystal may be as some alternative for now.

from crystal-libraries-needed.

Sija avatar Sija commented on June 1, 2024

@veelenga yep, I'm aware of it, yet for my taste it's rather unusable alternative, thus this issue.

from crystal-libraries-needed.

mjago avatar mjago commented on June 1, 2024

Why is ImageMagic a huge security risk?

from crystal-libraries-needed.

drosehn avatar drosehn commented on June 1, 2024

Because it is very poorly-written code, written back when the world wasn't full of actively-hostile attackers. Consider this recent news story:

yahoo_retires_imagemagick_library

And by recent, I mean: 21 May 2017

from crystal-libraries-needed.

mjago avatar mjago commented on June 1, 2024

I concur that yahoo has been a security risk over the last five years (I had an insignificant email account with them that was compromised twice).

from crystal-libraries-needed.

Papierkorb avatar Papierkorb commented on June 1, 2024

A list of ImageMagick CVEs: https://www.cvedetails.com/vulnerability-list/vendor_id-1749/Imagemagick.html

Though I wouldn't read too much into it. Implementing it ourselves isn't a magic bullet to make it bug free. It may have less whacky memory accesses, but OTOH, ImageMagick is pretty battle tested and will be for some time.

from crystal-libraries-needed.

Papierkorb avatar Papierkorb commented on June 1, 2024

libvips has to have glib2.0-dev. Other dependencies are optional, see below.

Not a fan of adding random dependencies, that alone makes it inferior.

from crystal-libraries-needed.

Sija avatar Sija commented on June 1, 2024

@Papierkorb me neither, yet libvips is IMO worth goin' the extra mile...

from crystal-libraries-needed.

activestylus avatar activestylus commented on June 1, 2024

Imagemagick also has dependencies, it's just a lot easier to use apt-get/yum/etc to install them as a total package. Libvips not only processes images faster, it has a smaller memory footprint than both ImageMagick and GraphicsMagick. Maybe its just my imagination too, but the resized images look crispier shrug

from crystal-libraries-needed.

Infinitybeond1 avatar Infinitybeond1 commented on June 1, 2024

Any progress on this?

from crystal-libraries-needed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.