How to resize an image with image-magick
Posted: Sun Aug 17, 2008 7:54 am
Hello!
I'm trying to use cl-magick to resize an image file, but i can't find how to.
After asdf-installing cl-magick on an ubuntu distro, the bindings couldn't find the alien functions. I managed to spot the error; certain .so files assumed to be existing actually weren't (they were .so.10 and the like), so a couple of ln -s solved the problem.
Thing is, after that, i can't find any documentation. Seems that the creator is not very fond of it. I toyed a while with the slime completion, and found some promising function names, like cl-magick:magickreadimagefile and cl-magick:magickresizeimage. But i can't manage to use them; reading somewhere i understood that i have to pass the function a file descriptor, instead of a stream or a file name. I feel i have used all my resources, and can't get around this one. Could someone please help me find a solution? Even if it is just some directions to doc (although if it were accompanied by a couple of code lines solving the problem or something related it would be awesome)
Thanks a lot!
Alex Ati
PS. The perfect post reply would help future third persons looking to resolve this or similar problems. Mind the forum!
I'm trying to use cl-magick to resize an image file, but i can't find how to.
After asdf-installing cl-magick on an ubuntu distro, the bindings couldn't find the alien functions. I managed to spot the error; certain .so files assumed to be existing actually weren't (they were .so.10 and the like), so a couple of ln -s solved the problem.
Thing is, after that, i can't find any documentation. Seems that the creator is not very fond of it. I toyed a while with the slime completion, and found some promising function names, like cl-magick:magickreadimagefile and cl-magick:magickresizeimage. But i can't manage to use them; reading somewhere i understood that i have to pass the function a file descriptor, instead of a stream or a file name. I feel i have used all my resources, and can't get around this one. Could someone please help me find a solution? Even if it is just some directions to doc (although if it were accompanied by a couple of code lines solving the problem or something related it would be awesome)
Thanks a lot!
Alex Ati
PS. The perfect post reply would help future third persons looking to resolve this or similar problems. Mind the forum!