Search found 14 matches

by chaddjohnson
2019-09-30T12:10:48-07:00
Forum: Users
Topic: conversion to pdf using aws lambda / node.js does not work
Replies: 11
Views: 16799

Re: conversion to pdf using aws lambda / node.js does not work

Hi, not sure if this will help, but here is how I got PDF support working in Lambda: https://gist.github.com/bensie/56f51bc3 ... nt-2983885
by chaddjohnson
2019-04-23T10:15:14-07:00
Forum: Users
Topic: Why does identifying colorspace use 7GB of memory?
Replies: 2
Views: 3963

Re: Why does identifying colorspace use 7GB of memory?

fmw42 wrote: 2019-04-20T21:08:35-07:00 Is the TIFF file compressed? If so, then when expanded it might be much larger. Otherwise, wait for the developers or someone who knows the software better to respond.
Yep, the TIFF is compressed.
by chaddjohnson
2019-04-20T17:03:12-07:00
Forum: Users
Topic: Why does identifying colorspace use 7GB of memory?
Replies: 2
Views: 3963

Why does identifying colorspace use 7GB of memory?

Hello, When using identify -format %[colorspace] example.tif to identify the colorspace of an 88MB CMYK TIFF, over 7GB of RAM is used on my machine. Why is this? Is there by chance a less resource-intensive way for ImageMagick to identify colorspace? I am able to run the following on my Mac with alm...
by chaddjohnson
2019-04-15T09:27:48-07:00
Forum: Users
Topic: convert with -profile fails for custom compiled ImageMagick 7
Replies: 11
Views: 11005

Re: convert with -profile fails for custom compiled ImageMagick 7

Your command works for us and returns expected results. We'll need a stack trace. Perhaps the bug is in the LCMS library. Install gdb and type these commands: $ gdb convert run /tmp/input.jpg -profile /var/task/src/color-profiles/AdobeRGB1998.icc -profile /var/task/src/color-profiles/USWebCoatedSWO...
by chaddjohnson
2019-04-14T12:50:47-07:00
Forum: Users
Topic: convert with -profile fails for custom compiled ImageMagick 7
Replies: 11
Views: 11005

Re: convert with -profile fails for custom compiled ImageMagick 7

You can check most of the delegate library versions using convert -list format and look at the end of the line for each to see the version number and library. Current libjpeg should read 90 Here is the output of that in the Lambda environment. Does anything look off or missing? I see "libjpeg-...
by chaddjohnson
2019-04-14T08:14:55-07:00
Forum: Users
Topic: convert with -profile fails for custom compiled ImageMagick 7
Replies: 11
Views: 11005

Re: convert with -profile fails for custom compiled ImageMagick 7

Is it possible a library could be missing in the Lambda environment? Maybe ImageMagick is trying to load libsomething.so, it fails to find the library, and it silently fails? If so, I wonder if there is a way to test for this. Maybe a verbose debug option. Or, maybe the Lambda environment has an old...
by chaddjohnson
2019-04-14T07:31:27-07:00
Forum: Users
Topic: convert with -profile fails for custom compiled ImageMagick 7
Replies: 11
Views: 11005

Re: convert with -profile fails for custom compiled ImageMagick 7

Do you have read permissions from /var? Are your profiles actually there? I know little about AWS. But I am not sure you should be using profiles in /var nor images in /tmp. If you put your images and profiles in some other user directory, does it work? Are your profiles corrupt? Can you transfer t...
by chaddjohnson
2019-04-14T07:27:22-07:00
Forum: Users
Topic: convert with -profile fails for custom compiled ImageMagick 7
Replies: 11
Views: 11005

Re: convert with -profile fails for custom compiled ImageMagick 7

Your command works for us and returns expected results. We'll need a stack trace. Perhaps the bug is in the LCMS library. Install gdb and type these commands: $ gdb convert run /tmp/input.jpg -profile /var/task/src/color-profiles/AdobeRGB1998.icc -profile /var/task/src/color-profiles/USWebCoatedSWO...
by chaddjohnson
2019-04-13T12:23:02-07:00
Forum: Users
Topic: convert with -profile fails for custom compiled ImageMagick 7
Replies: 11
Views: 11005

Re: convert with -profile fails for custom compiled ImageMagick 7

What do you get from convert -version Do you have LCMS2 delegate installed? See http://www.linuxfromscratch.org/blfs/view/cvs/general/lcms2.html Hi! When I run convert -version in the Lambda environment I get Version: ImageMagick 7.0.8-40 Q16 x86_64 2019-04-13 https://imagemagick.org Copyright: © 1...
by chaddjohnson
2019-04-13T12:00:32-07:00
Forum: Users
Topic: convert with -profile fails for custom compiled ImageMagick 7
Replies: 11
Views: 11005

convert with -profile fails for custom compiled ImageMagick 7

I am experiencing a strange problem with a custom compiled version of ImageMagick 7 (7.0.8-40). I am running this in an AWS Lambda instance. When I run convert passing color profiles (copies of ones I've used before), the command fails with SIGABRT: convert /tmp/input.jpg -profile /var/task/src/colo...
by chaddjohnson
2018-11-28T16:39:58-07:00
Forum: Users
Topic: Unable to trim whitespace from this image
Replies: 6
Views: 6245

Re: Unable to trim whitespace from this image

Will do. Thanks!
by chaddjohnson
2018-11-28T14:02:34-07:00
Forum: Users
Topic: Unable to trim whitespace from this image
Replies: 6
Views: 6245

Re: Unable to trim whitespace from this image

It's due to the way this image was generated. It was composed with another image, and the mask was smaller than the other image, so that caused the line.

Sorry if I have my terms or usages wrong -- I'm a developer, and IM is new to me :)
by chaddjohnson
2018-11-28T12:36:36-07:00
Forum: Users
Topic: Unable to trim whitespace from this image
Replies: 6
Views: 6245

Re: Unable to trim whitespace from this image

That was it! I totally missed that. Thank you! I was able to add some transparent padding like so:

Code: Select all

convert input.png -gravity north -background transparent -splice 0x1 output.png
by chaddjohnson
2018-11-27T21:07:29-07:00
Forum: Users
Topic: Unable to trim whitespace from this image
Replies: 6
Views: 6245

Unable to trim whitespace from this image

I am trying to trim whitespace (which is actually transparent) from this image: https://i.ibb.co/MP9LcTh/image.png

The following command strangely fails to trim from the left side of the image:

Code: Select all

convert input.png -fuzz 5% -trim output.png
Any idea why?