www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - D package for optimizing/compressing images

reply aberba <karabutaworld gmail.com> writes:
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.
Jan 27
next sibling parent reply Jesse Phillips <Jesse.K.Phillips+D gmail.com> writes:
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.
Jan 27
parent aberba <karabutaworld gmail.com> writes:
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.
Jan 27
prev sibling next sibling parent =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com> writes:
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
Jan 27
prev sibling next sibling parent aberba <karabutaworld gmail.com> writes:
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.
Jan 28
prev sibling next sibling parent aberba <karabutaworld gmail.com> writes:
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.
Jan 28
prev sibling parent aberba <karabutaworld gmail.com> writes:
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
Jan 31