
Trying to work with images via hsmagic package, use something like this scaleTest :: FilePath -> IO() scaleTest dst = do initializeMagick image <- readImage dst let image' = scaleImage 450 450 image writeImage dst image' but get core dump, when compiling. Types are ok, and path are valid, can it be problem of os or I'm doing something wrong?

On 01/09/2013 01:51 PM, Sergey Bushnyak wrote:
Trying to work with images via hsmagic package, use something like this
scaleTest :: FilePath -> IO() scaleTest dst = do initializeMagick image <- readImage dst let image' = scaleImage 450 450 image writeImage dst image'
but get core dump, when compiling. Types are ok, and path are valid, can it be problem of os or I'm doing something wrong?
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners Same problem here (Ubuntu 12.10, amd64, GHC 7.4.2). This package seems to be broken.
-- Best regards, Alexander Alexeev http://eax.me/

[self Adv.] You can try to use another image magick binding library [1]. It's not yet on hackage as it's not well tested for production, but it seems to work properly in many cases and quite more safe than hsmagic. [1] https://github.com/qnikst/imagemagick -- Alexander Vershilov. Wed, Jan 09, 2013 at 05:53:03PM +0400, Alexander Alexeev wrote
On 01/09/2013 01:51 PM, Sergey Bushnyak wrote:
Trying to work with images via hsmagic package, use something like this
scaleTest :: FilePath -> IO() scaleTest dst = do initializeMagick image <- readImage dst let image' = scaleImage 450 450 image writeImage dst image'
but get core dump, when compiling. Types are ok, and path are valid, can it be problem of os or I'm doing something wrong?
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners Same problem here (Ubuntu 12.10, amd64, GHC 7.4.2). This package seems to be broken.
-- Best regards, Alexander Alexeev http://eax.me/
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
participants (3)
-
Alexander Alexeev
-
alexander.vershilov@gmail.com
-
Sergey Bushnyak