RejectedSoftware Forums

Sign up

Image processing

What would be the recommended way for doing server side image resizing/cropping?

I have also been experimenting with doing this stuff client side.
If I get that to work then I only need to do server side image verification and sanitation. Any advice?

Re: Image processing

On Sat, 27 Sep 2014 19:39:39 GMT, Angst wrote:

What would be the recommended way for doing server side image resizing/cropping?

I have also been experimenting with doing this stuff client side.
If I get that to work then I only need to do server side image verification and sanitation. Any advice?

The easiest and powerful way is using command line tool like ImageMagick. You can invoke it by std.process.spawnProcess.

Re: Image processing

On Mon, 29 Sep 2014 05:56:38 GMT, Jack Applegame wrote:

On Sat, 27 Sep 2014 19:39:39 GMT, Angst wrote:

What would be the recommended way for doing server side image resizing/cropping?

I have also been experimenting with doing this stuff client side.
If I get that to work then I only need to do server side image verification and sanitation. Any advice?
The easiest and powerful way is using command line tool like ImageMagick. You can invoke it by std.process.spawnProcess.

I was afraid of that ;)

Do you think image processing should have a place within vibe.d (or phobos) ala php?
http://php.net/manual/en/ref.image.php

Re: Image processing

On Mon, 29 Sep 2014 05:56:38 GMT, Jack Applegame wrote:

On Sat, 27 Sep 2014 19:39:39 GMT, Angst wrote:

What would be the recommended way for doing server side image resizing/cropping?

I have also been experimenting with doing this stuff client side.
If I get that to work then I only need to do server side image verification and sanitation. Any advice?
The easiest and powerful way is using command line tool like ImageMagick. You can invoke it by std.process.spawnProcess.

There seems to be an ImageMagick bindings for D.
https://github.com/MikeWey/DMagick

Couldn't find any GraphicsMagick bindings though ;)
http://www.graphicsmagick.org/

Re: Image processing

Am 04.10.2014 18:36, schrieb Angst:

On Mon, 29 Sep 2014 05:56:38 GMT, Jack Applegame wrote:

On Sat, 27 Sep 2014 19:39:39 GMT, Angst wrote:

What would be the recommended way for doing server side image resizing/cropping?

I have also been experimenting with doing this stuff client side.
If I get that to work then I only need to do server side image verification and sanitation. Any advice?
The easiest and powerful way is using command line tool like ImageMagick. You can invoke it by std.process.spawnProcess.

I was afraid of that ;)

Do you think image processing should have a place within vibe.d (or phobos) ala php?
http://php.net/manual/en/ref.image.php

I'd say not within vibe.d, but maybe a separate little wrapper library
that provides a more convienient interface within vibe.d would be a
worthwhile project. I'm using my own image processing framework (which
is still closed), so this is something somebody else would have to do
though.