Thread overview
D package for optimizing/compressing images
Jan 27, 2017
aberba
Jan 27, 2017
Jesse Phillips
Jan 27, 2017
aberba
Jan 27, 2017
Ali Çehreli
Jan 28, 2017
aberba
Jan 28, 2017
aberba
Jan 31, 2017
aberba
January 27, 2017
Are there any dub package for compressing images uploaded through web forms? Cropping/resizing may also come in handy.

I want one for a vibe.d project.
January 27, 2017
On Friday, 27 January 2017 at 11:03:15 UTC, aberba wrote:
> Are there any dub package for compressing images uploaded through web forms? Cropping/resizing may also come in handy.
>
> I want one for a vibe.d project.

I don't know of any D projects. If I were doing this I'd be running the vibe.d server on linux and just use common linux utilities for photo manipulation on the commandline.
January 27, 2017
On Friday, 27 January 2017 at 19:14:19 UTC, Jesse Phillips wrote:
> On Friday, 27 January 2017 at 11:03:15 UTC, aberba wrote:
>> Are there any dub package for compressing images uploaded through web forms? Cropping/resizing may also come in handy.
>>
>> I want one for a vibe.d project.
>
> I don't know of any D projects. If I were doing this I'd be running the vibe.d server on linux and just use common linux utilities for photo manipulation on the commandline.

Unfortunately, I will be using Heroku which is a PaaS, so no access to shell.
January 27, 2017
On 01/27/2017 03:03 AM, aberba wrote:
> Are there any dub package for compressing images uploaded through web
> forms? Cropping/resizing may also come in handy.
>
> I want one for a vibe.d project.

I have a minimal MagickWand binding if you want to use or extend:

  https://github.com/acehreli/alibum/blob/master/magickwand.d

Ali

January 28, 2017
On Friday, 27 January 2017 at 11:03:15 UTC, aberba wrote:
> Are there any dub package for compressing images uploaded through web forms? Cropping/resizing may also come in handy.
>
> I want one for a vibe.d project.

Currently, there are RIP and Daffodil dor image related operations. I think support for optimizing pnf, JPEG and gif are yet to be implemented. Daffodil has potential for exactly what I'm looking for.
January 28, 2017
On Friday, 27 January 2017 at 11:03:15 UTC, aberba wrote:
> Are there any dub package for compressing images uploaded through web forms? Cropping/resizing may also come in handy.
>
> I want one for a vibe.d project.

I read Flickr and others use GraphicsMagick but here again heroku doesn't help.
January 31, 2017
On Friday, 27 January 2017 at 11:03:15 UTC, aberba wrote:
> Are there any dub package for compressing images uploaded through web forms? Cropping/resizing may also come in handy.
>
> I want one for a vibe.d project.

dlib-webp[1] is almost what I've been looking for. In fact, webp is a complete replacement for jpg, png, gif with an added advantage of smaller file size.

[1]http://code.dlang.org/packages/dlib-webp