Page 1 of 1

convert with -profile fails for custom compiled ImageMagick 7

Posted: 2019-04-13T12:00:32-07:00
by chaddjohnson
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:

Code: Select all

convert /tmp/input.jpg -profile /var/task/src/color-profiles/AdobeRGB1998.icc -profile /var/task/src/color-profiles/USWebCoatedSWOP.icc /tmp/output.jpg
But when I do not pass color profiles, the command succeeds:

Code: Select all

convert /tmp/input.jpg /tmp/output.jpg
I have tried this with multiple JPG images which have had no problems in the past.

Here are the steps I used for compilation:

Code: Select all

sudo yum install libpng-devel libjpeg-devel libtiff-devel gcc ImageMagick-devel xz-devel.x86_64 fontconfig-devel.x86_64 libxml2-devel.x86_64

./configure --prefix=/var/task/imagemagick --enable-shared=no --enable-static=yes --with-bzlib=yes --with-fontconfig=yes --with-freetype=yes --with-jpeg=yes --with-lcms=yes --with-lqr=yes --with-lzma=yes --with-png=yes --with-tiff=yes --with-zlib=yes --with-x=no --with-gslib=yes --with-xml=yes

make && make install
I used a Lambda Execution Environment AMI file compilation per https://docs.aws.amazon.com/lambda/late ... sions.html.

I then copied the bin and lib directories to the root of my deploy package as well as copied the contents of etc to .magick. I also updated the PATH and LD_LIBRARY_PATH and verified with convert --version that the custom version is indeed being called with calls to convert:

Code: Select all

process.env['PATH'] = `${process.env['LAMBDA_TASK_ROOT']}/bin:${process.env['PATH']}`;
process.env['LD_LIBRARY_PATH'] = `${process.env['LAMBDA_TASK_ROOT']}/lib:${process.env['LD_LIBRARY_PATH']}`;
I did find that the command with profile options does work when run in the AMI instance. I ran the following as a test:

Code: Select all

export PATH=/var/task/imagemagick/bin:$PATH
export LD_LIBRARY_PATH/var/task/imagemagick/lib
convert input.jpg -profile AdobeRGB1998.icc -profile USWebCoatedSWOP.icc output.jpg
Any ideas why convert with color profiles is failing?

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

Posted: 2019-04-13T12:14:49-07:00
by fmw42
What do you get from

Code: Select all

convert -version
Do you have LCMS2 delegate installed? See http://www.linuxfromscratch.org/blfs/vi ... lcms2.html

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

Posted: 2019-04-13T12:23:02-07:00
by chaddjohnson
fmw42 wrote: 2019-04-13T12:14:49-07:00 What do you get from

Code: Select all

convert -version
Do you have LCMS2 delegate installed? See http://www.linuxfromscratch.org/blfs/vi ... lcms2.html
Hi!

When I run

Code: Select all

convert -version
in the Lambda environment I get

Code: Select all

Version: ImageMagick 7.0.8-40 Q16 x86_64 2019-04-13 https://imagemagick.org
Copyright: © 1999-2019 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP 
Delegates (built-in): bzlib fontconfig freetype gslib jng jpeg lcms lzma png ps tiff xml zlib
Regarding LCMS, the configure command showed the following:

Code: Select all

  Delegate Library Configuration:
  BZLIB             --with-bzlib=yes		yes
  Autotrace         --with-autotrace=no		no
  DJVU              --with-djvu=yes		no
  DPS               --with-dps=yes		no
  FFTW              --with-fftw=yes		no
  FLIF              --with-flif=yes		no
  FlashPIX          --with-fpx=yes		no
  FontConfig        --with-fontconfig=yes	yes
  FreeType          --with-freetype=yes		yes
  Ghostscript lib   --with-gslib=yes		yes
  Graphviz          --with-gvc=yes		no
  HEIC              --with-heic=yes             no
  JBIG              --with-jbig=yes		no
  JPEG v1           --with-jpeg=yes		yes
  LCMS              --with-lcms=yes		yes
  LQR               --with-lqr=yes		no
  LTDL              --with-ltdl=yes		no
  LZMA              --with-lzma=yes		yes
  Magick++          --with-magick-plus-plus=yes	no (failed tests)
  OpenEXR           --with-openexr=yes		no
  OpenJP2           --with-openjp2=yes		no
  PANGO             --with-pango=yes		no
  PERL              --with-perl=no		no
  PNG               --with-png=yes		yes
  RAQM              --with-raqm=yes		no
  RAW               --with-raw=yes 	   	no
  RSVG              --with-rsvg=no		no
  TIFF              --with-tiff=yes		yes
  WEBP              --with-webp=yes		no
  WMF               --with-wmf=yes		no
  X11               --with-x=no			no
  XML               --with-xml=yes		yes
  ZLIB              --with-zlib=yes		yes
  ZSTD              --with-zstd=yes		no
  
and in the AMI, lcms2.x86_64 and lcms2-devel.x86_64 were installed prior to compiling.

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

Posted: 2019-04-13T12:59:09-07:00
by magick
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:

Code: Select all

$ gdb convert
run /tmp/input.jpg -profile /var/task/src/color-profiles/AdobeRGB1998.icc -profile /var/task/src/color-profiles/USWebCoatedSWOP.icc /tmp/output.jpg
where
Post the stack trace here so we can determine the source of the bug.

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

Posted: 2019-04-13T13:01:22-07:00
by fmw42
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 them elsewhere and get your image to process outside of AWS?

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

Posted: 2019-04-14T07:27:22-07:00
by chaddjohnson
magick wrote: 2019-04-13T12:59:09-07:00 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:

Code: Select all

$ gdb convert
run /tmp/input.jpg -profile /var/task/src/color-profiles/AdobeRGB1998.icc -profile /var/task/src/color-profiles/USWebCoatedSWOP.icc /tmp/output.jpg
where
Post the stack trace here so we can determine the source of the bug.
Hi magick,

Here is a stack trace from gdb. Not much to see. Following the stack trace I also ran the normal command. Output is below.

Code: Select all

START RequestId: 7b1fd9fb-f8b6-4ae9-9f81-49f7b8b4b8de Version: $LATEST
2019-04-14T14:24:58.053Z	7b1fd9fb-f8b6-4ae9-9f81-49f7b8b4b8de	GNU gdb (GDB) Amazon Linux (7.6.1-64.33.amzn1)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-amazon-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /var/task/bin/magick...done.
(gdb) Starting program: /var/task/bin/convert /var/task/input.jpg -profile /var/task/src/color-profiles/AdobeRGB1998.icc -profile /var/task/src/color-profiles/USWebCoatedSWOP.icc /tmp/output.jpg
(gdb) (gdb) quit

2019-04-14T14:25:37.952Z	7b1fd9fb-f8b6-4ae9-9f81-49f7b8b4b8de	{ Error: Command failed: convert /var/task/input.jpg -profile /var/task/src/color-profiles/AdobeRGB1998.icc -profile /var/task/src/color-profiles/USWebCoatedSWOP.icc /tmp/output2.jpg

at ChildProcess.exithandler (child_process.js:275:12)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
cause: 
{ Error: Command failed: convert /var/task/input.jpg -profile /var/task/src/color-profiles/AdobeRGB1998.icc -profile /var/task/src/color-profiles/USWebCoatedSWOP.icc /tmp/output2.jpg

at ChildProcess.exithandler (child_process.js:275:12)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
killed: false,
code: null,
signal: 'SIGABRT',
cmd: 'convert /var/task/input.jpg -profile /var/task/src/color-profiles/AdobeRGB1998.icc -profile /var/task/src/color-profiles/USWebCoatedSWOP.icc /tmp/output2.jpg' },
isOperational: true,
killed: false,
code: null,
signal: 'SIGABRT',
cmd: 'convert /var/task/input.jpg -profile /var/task/src/color-profiles/AdobeRGB1998.icc -profile /var/task/src/color-profiles/USWebCoatedSWOP.icc /tmp/output2.jpg' }
END RequestId: 7b1fd9fb-f8b6-4ae9-9f81-49f7b8b4b8de
REPORT RequestId: 7b1fd9fb-f8b6-4ae9-9f81-49f7b8b4b8de	Duration: 40106.54 ms	Billed Duration: 40200 ms Memory Size: 3008 MB	Max Memory Used: 1992 MB	
I ran this as follows:

commands.txt:

Code: Select all

run /var/task/input.jpg -profile /var/task/src/color-profiles/AdobeRGB1998.icc -profile /var/task/src/color-profiles/USWebCoatedSWOP.icc /tmp/output.jpg
where
Shell commands:

Code: Select all

gdb convert < /var/task/commands.txt
convert /var/task/input.jpg -profile /var/task/src/color-profiles/AdobeRGB1998.icc -profile /var/task/src/color-profiles/USWebCoatedSWOP.icc /tmp/output2.jpg

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

Posted: 2019-04-14T07:31:27-07:00
by chaddjohnson
fmw42 wrote: 2019-04-13T13:01:22-07:00 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 them elsewhere and get your image to process outside of AWS?
Hi Fred,

The script has read permissions to /var/task, and the profiles are there in /var/task/src/color-profiles. I've used these same color profiles for the last year on a normal EC2 server with no problems, and after comparing the md5 hashes, they are the same.

I just did another test. I transferred them outside and used them with no problem.

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

Posted: 2019-04-14T08:14:55-07:00
by chaddjohnson
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 version of some library (e.g., libjpeg), and what I compiled expects a newer version, and so it is getting confused.

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

Posted: 2019-04-14T12:18:06-07:00
by fmw42
You can check most of the delegate library versions using

Code: Select all

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

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

Posted: 2019-04-14T12:50:47-07:00
by chaddjohnson
fmw42 wrote: 2019-04-14T12:18:06-07:00 You can check most of the delegate library versions using

Code: Select all

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-turbo 1.2.90" (apparently released in 2013) in the Lambda environment and "libjpeg-turbo 1.4.2" (apparently released in 2015) on my server (things work on the server).

Code: Select all

Format Mode Description
-------------------------------------------------------------------------------
3FR r-- Hasselblad CFV/H3D39II
3G2 r-- Media Container
3GP r-- Media Container
A* rw+ Raw alpha samples
AAI* rw+ AAI Dune image
AI rw- Adobe Illustrator CS2
ART* rw- PFS: 1st Publisher Clip Art
ARW r-- Sony Alpha Raw Image Format
AVI r-- Microsoft Audio/Visual Interleaved
AVS* rw+ AVS X image
B* rw+ Raw blue samples
BGR* rw+ Raw blue, green, and red samples
BGRA* rw+ Raw blue, green, red, and alpha samples
BGRO* rw+ Raw blue, green, red, and opacity samples
BMP* rw- Microsoft Windows bitmap image
BMP2* rw- Microsoft Windows bitmap image (V2)
BMP3* rw- Microsoft Windows bitmap image (V3)
BRF* -w- BRF ASCII Braille format
C* rw+ Raw cyan samples
CAL* rw- Continuous Acquisition and Life-cycle Support Type 1
Specified in MIL-R-28002 and MIL-PRF-28002
CALS* rw- Continuous Acquisition and Life-cycle Support Type 1
Specified in MIL-R-28002 and MIL-PRF-28002
CANVAS* r-- Constant image uniform color
CAPTION* r-- Caption
CIN* rw- Cineon Image File
CIP* -w- Cisco IP phone image format
CLIP* rw+ Image Clip Mask
CMYK* rw+ Raw cyan, magenta, yellow, and black samples
CMYKA* rw+ Raw cyan, magenta, yellow, black, and alpha samples
CR2 r-- Canon Digital Camera Raw Image Format
CRW r-- Canon Digital Camera Raw Image Format
CUBE* r-- Cube LUT
CUR* rw- Microsoft icon
CUT* r-- DR Halo
DATA* rw+ Base64-encoded inline images
DCM* r-- Digital Imaging and Communications in Medicine image
DICOM is used by the medical community for images like X-rays. The
specification, "Digital Imaging and Communications in Medicine
(DICOM)", is available at http://medical.nema.org/. In particular,
see part 5 which describes the image encoding (RLE, JPEG, JPEG-LS),
and supplement 61 which adds JPEG-2000 encoding.
DCR r-- Kodak Digital Camera Raw Image File
DCRAW r-- Raw Photo Decoder (dcraw)
DCX* rw+ ZSoft IBM PC multi-page Paintbrush
DDS* rw+ Microsoft DirectDraw Surface
DFONT* r-- Multi-face font package (Freetype 2.3.11)
DNG r-- Digital Negative
DPX* rw- SMPTE 268M-2003 (DPX 2.0)
Digital Moving Picture Exchange Bitmap, Version 2.0.
See SMPTE 268M-2003 specification at http://www.smtpe.org

DXT1* rw+ Microsoft DirectDraw Surface
DXT5* rw+ Microsoft DirectDraw Surface
EPDF rw- Encapsulated Portable Document Format
EPI rw- Encapsulated PostScript Interchange format
EPS rw- Encapsulated PostScript
EPS2 -w- Level II Encapsulated PostScript
EPS3 -w+ Level III Encapsulated PostScript
EPSF rw- Encapsulated PostScript
EPSI rw- Encapsulated PostScript Interchange format
EPT rw- Encapsulated PostScript with TIFF preview
EPT2 rw- Encapsulated PostScript Level II with TIFF preview
EPT3 rw+ Encapsulated PostScript Level III with TIFF preview
ERF r-- Epson RAW Format
FAX* rw+ Group 3 FAX
FAX machines use non-square pixels which are 1.5 times wider than
they are tall but computer displays use square pixels, therefore
FAX images may appear to be narrow unless they are explicitly
resized using a geometry of "150x100%".

FILE* r-- Uniform Resource Locator (file://)
FITS* rw- Flexible Image Transport System
FLV rw+ Flash Video Stream
FRACTAL* r-- Plasma fractal image
FTP* r-- Uniform Resource Locator (ftp://)
FTS* rw- Flexible Image Transport System
G* rw+ Raw green samples
G3* rw- Group 3 FAX
G4* rw- Group 4 FAX
GIF* rw+ CompuServe graphics interchange format
GIF87* rw- CompuServe graphics interchange format (version 87a)
GRADIENT* r-- Gradual linear passing from one shade to another
GRAY* rw+ Raw gray samples
GRAYA* rw+ Raw gray and alpha samples
GROUP4* rw- Raw CCITT Group4
HALD* r-- Identity Hald color lookup table image
HDR* rw+ Radiance RGBE image format
HISTOGRAM* -w- Histogram of the image
HRZ* rw- Slow Scan TeleVision
HTM* -w- Hypertext Markup Language and a client-side image map
HTML* -w- Hypertext Markup Language and a client-side image map
HTTP* r-- Uniform Resource Locator (http://)
HTTPS* --- Uniform Resource Locator (https://)
ICB* rw- Truevision Targa image
ICO* rw+ Microsoft icon
ICON* rw- Microsoft icon
IIQ r-- Phase One Raw Image Format
INFO -w+ The image format and characteristics
INLINE* rw+ Base64-encoded inline images
IPL* rw+ IPL Image Sequence
ISOBRL* -w- ISO/TR 11548-1 format
ISOBRL6* -w- ISO/TR 11548-1 format 6dot
JNG* rw- JPEG Network Graphics
See http://www.libpng.org/pub/mng/ for details about the JNG
format.
JNX* r-- Garmin tile format
JPE* rw- Joint Photographic Experts Group JFIF format (libjpeg-turbo 1.2.90)
JPEG* rw- Joint Photographic Experts Group JFIF format (libjpeg-turbo 1.2.90)
JPG* rw- Joint Photographic Experts Group JFIF format (libjpeg-turbo 1.2.90)
JPS* rw- Joint Photographic Experts Group JFIF format (libjpeg-turbo 1.2.90)
JSON -w+ The image format and characteristics
K* rw+ Raw black samples
K25 r-- Kodak Digital Camera Raw Image Format
KDC r-- Kodak Digital Camera Raw Image Format
LABEL* r-- Image label
M* rw+ Raw magenta samples
M2V rw+ MPEG Video Stream
M4V rw+ Raw MPEG-4 Video
MAC* r-- MAC Paint
MAP* rw- Colormap intensities and indices
MASK* rw+ Image Clip Mask
MAT rw+ MATLAB level 5 image format
MATTE* -w+ MATTE format
MEF r-- Mamiya Raw Image File
MIFF* rw+ Magick Image File Format
MKV rw+ Multimedia Container
MNG* rw+ Multiple-image Network Graphics (libpng 1.2.49)
See http://www.libpng.org/pub/mng/ for details about the MNG
format.
MONO* rw- Raw bi-level bitmap
MOV rw+ MPEG Video Stream
MP4 rw+ MPEG-4 Video Stream
MPC* rw+ Magick Persistent Cache image format
MPEG rw+ MPEG Video Stream
MPG rw+ MPEG Video Stream
MRW r-- Sony (Minolta) Raw Image File
MSL* rw+ Magick Scripting Language
MSVG rw+ ImageMagick's own SVG internal renderer
MTV* rw+ MTV Raytracing image format
MVG* rw- Magick Vector Graphics
NEF r-- Nikon Digital SLR Camera Raw Image File
NRW r-- Nikon Digital SLR Camera Raw Image File
NULL* rw- Constant image of uniform color
O* rw+ Raw opacity samples
ORF r-- Olympus Digital Camera Raw Image File
OTB* rw- On-the-air bitmap
OTF* r-- Open Type font (Freetype 2.3.11)
PAL* rw- 16bit/pixel interleaved YUV
PALM* rw+ Palm pixmap
PAM* rw+ Common 2-dimensional bitmap format
PANGO* --- Pango Markup Language
PATTERN* r-- Predefined pattern
PBM* rw+ Portable bitmap format (black and white)
PCD* rw- Photo CD
PCDS* rw- Photo CD
PCL rw+ Printer Control Language
PCT* rw- Apple Macintosh QuickDraw/PICT
PCX* rw- ZSoft IBM PC Paintbrush
PDB* rw+ Palm Database ImageViewer Format
PDF rw+ Portable Document Format
PDFA rw+ Portable Document Archive Format
PEF r-- Pentax Electronic File
PES* r-- Embrid Embroidery Format
PFA* r-- Postscript Type 1 font (ASCII) (Freetype 2.3.11)
PFB* r-- Postscript Type 1 font (binary) (Freetype 2.3.11)
PFM* rw+ Portable float format
PGM* rw+ Portable graymap format (gray scale)
PGX* rw- JPEG 2000 uncompressed format
PICON* rw- Personal Icon
PICT* rw- Apple Macintosh QuickDraw/PICT
PIX* r-- Alias/Wavefront RLE image format
PJPEG* rw- Joint Photographic Experts Group JFIF format (libjpeg-turbo 1.2.90)
PLASMA* r-- Plasma fractal image
PNG* rw- Portable Network Graphics (libpng 1.2.49)
See http://www.libpng.org/ for details about the PNG format.
PNG00* rw- PNG inheriting bit-depth, color-type from original, if possible
PNG24* rw- opaque or binary transparent 24-bit RGB (zlib 1.2.8)
PNG32* rw- opaque or transparent 32-bit RGBA
PNG48* rw- opaque or binary transparent 48-bit RGB
PNG64* rw- opaque or transparent 64-bit RGBA
PNG8* rw- 8-bit indexed with optional binary transparency
PNM* rw+ Portable anymap
PPM* rw+ Portable pixmap format (color)
PS rw+ PostScript
PS2 -w+ Level II PostScript
PS3 -w+ Level III PostScript
PSB* rw+ Adobe Large Document Format
PSD* rw+ Adobe Photoshop bitmap
PTIF* rw+ Pyramid encoded TIFF
PWP* r-- Seattle Film Works
R* rw+ Raw red samples
RADIAL-GRADIENT* r-- Gradual radial passing from one shade to another
RAF r-- Fuji CCD-RAW Graphic File
RAS* rw+ SUN Rasterfile
RAW r-- Raw
RGB* rw+ Raw red, green, and blue samples
RGBA* rw+ Raw red, green, blue, and alpha samples
RGBO* rw+ Raw red, green, blue, and opacity samples
RGF* rw- LEGO Mindstorms EV3 Robot Graphic Format (black and white)
RLA* r-- Alias/Wavefront image
RLE* r-- Utah Run length encoded image
RMF r-- Raw Media Format
RW2 r-- Panasonic Lumix Raw Image
SCR* r-- ZX-Spectrum SCREEN$
SCREENSHOT* r-- Screen shot
SCT* r-- Scitex HandShake
SFW* r-- Seattle Film Works
SGI* rw+ Irix RGB image
SHTML* -w- Hypertext Markup Language and a client-side image map
SIX* rw- DEC SIXEL Graphics Format
SIXEL* rw- DEC SIXEL Graphics Format
SPARSE-COLOR* -w+ Sparse Color
SR2 r-- Sony Raw Format 2
SRF r-- Sony Raw Format
STEGANO* r-- Steganographic image
SUN* rw+ SUN Rasterfile
SVG rw+ Scalable Vector Graphics (XML 2.9.1)
SVGZ rw+ Compressed Scalable Vector Graphics (XML 2.9.1)
TEXT* r-- Text
TGA* rw- Truevision Targa image
THUMBNAIL* -w+ EXIF Profile Thumbnail
TIFF* rw+ Tagged Image File Format (LIBTIFF, Version 4.0.3)
TIFF64* rw- Tagged Image File Format (64-bit) (LIBTIFF, Version 4.0.3)
TILE* r-- Tile image with a texture
TIM* r-- PSX TIM
TTC* r-- TrueType font collection (Freetype 2.3.11)
TTF* r-- TrueType font (Freetype 2.3.11)
TXT* rw+ Text
UBRL* -w- Unicode Text format
UBRL6* -w- Unicode Text format 6dot
UIL* -w- X-Motif UIL table
UYVY* rw- 16bit/pixel interleaved YUV
VDA* rw- Truevision Targa image
VICAR* rw- VICAR rasterfile format
VID* rw+ Visual Image Directory
VIFF* rw+ Khoros Visualization image
VIPS* rw+ VIPS image
VST* rw- Truevision Targa image
WBMP* rw- Wireless Bitmap (level 0) image
WMV rw+ Windows Media Video
WPG* r-- Word Perfect Graphics
X3F r-- Sigma Camera RAW Picture File
XBM* rw- X Windows system bitmap (black and white)
XC* r-- Constant image uniform color
XCF* r-- GIMP image
XPM* rw- X Windows system pixmap (color)
XPS r-- Microsoft XML Paper Specification
XV* rw+ Khoros Visualization image
Y* rw+ Raw yellow samples
YCbCr* rw+ Raw Y, Cb, and Cr samples
YCbCrA* rw+ Raw Y, Cb, Cr, and alpha samples
YUV* rw- CCIR 601 4:1:1 or 4:2:2

* native blob support
r read support
w write support
+ support for multiple images
And here is what I see on my server (where things work):

Code: Select all

   Format  Mode  Description
-------------------------------------------------------------------------------
      3FR  r--   Hasselblad CFV/H3D39II
      3G2  r--   Media Container
      3GP  r--   Media Container
        A* rw+   Raw alpha samples
      AAI* rw+   AAI Dune image
       AI  rw-   Adobe Illustrator CS2
      ART* rw-   PFS: 1st Publisher Clip Art
      ARW  r--   Sony Alpha Raw Image Format
      AVI  r--   Microsoft Audio/Visual Interleaved
      AVS* rw+   AVS X image
        B* rw+   Raw blue samples
      BGR* rw+   Raw blue, green, and red samples
     BGRA* rw+   Raw blue, green, red, and alpha samples
     BGRO* rw+   Raw blue, green, red, and opacity samples
      BIE* rw-   Joint Bi-level Image experts Group interchange format (2.1)
      BMP* rw-   Microsoft Windows bitmap image
     BMP2* rw-   Microsoft Windows bitmap image (V2)
     BMP3* rw-   Microsoft Windows bitmap image (V3)
      BRF* -w-   BRF ASCII Braille format
        C* rw+   Raw cyan samples
      CAL* rw-   Continuous Acquisition and Life-cycle Support Type 1
           Specified in MIL-R-28002 and MIL-PRF-28002
     CALS* rw-   Continuous Acquisition and Life-cycle Support Type 1
           Specified in MIL-R-28002 and MIL-PRF-28002
   CANVAS* r--   Constant image uniform color
  CAPTION* r--   Caption
      CIN* rw-   Cineon Image File
      CIP* -w-   Cisco IP phone image format
     CLIP* rw+   Image Clip Mask
     CMYK* rw+   Raw cyan, magenta, yellow, and black samples
    CMYKA* rw+   Raw cyan, magenta, yellow, black, and alpha samples
      CR2  r--   Canon Digital Camera Raw Image Format
      CRW  r--   Canon Digital Camera Raw Image Format
     CUBE* r--   Cube LUT
      CUR* rw-   Microsoft icon
      CUT* r--   DR Halo
     DATA* rw+   Base64-encoded inline images
      DCM* r--   Digital Imaging and Communications in Medicine image
           DICOM is used by the medical community for images like X-rays.  The
           specification, "Digital Imaging and Communications in Medicine
           (DICOM)", is available at http://medical.nema.org/.  In particular,
           see part 5 which describes the image encoding (RLE, JPEG, JPEG-LS),
           and supplement 61 which adds JPEG-2000 encoding.
      DCR  r--   Kodak Digital Camera Raw Image File
    DCRAW  r--   Raw Photo Decoder (dcraw)
      DCX* rw+   ZSoft IBM PC multi-page Paintbrush
      DDS* rw+   Microsoft DirectDraw Surface
    DFONT* r--   Multi-face font package (Freetype 2.6.1)
     DJVU* r--   Deja vu
           See http://www.djvuzone.org/ for details about the DJVU format.  The
           DJVU 1.2 specification is available there and at
           ftp://swrinde.nde.swri.edu/pub/djvu/documents/.
      DNG  r--   Digital Negative
      DPX* rw-   SMPTE 268M-2003 (DPX 2.0)
           Digital Moving Picture Exchange Bitmap, Version 2.0.
           See SMPTE 268M-2003 specification at http://www.smtpe.org
           
     DXT1* rw+   Microsoft DirectDraw Surface
     DXT5* rw+   Microsoft DirectDraw Surface
     EPDF  rw-   Encapsulated Portable Document Format
      EPI  rw-   Encapsulated PostScript Interchange format
      EPS  rw-   Encapsulated PostScript
     EPS2  -w-   Level II Encapsulated PostScript
     EPS3  -w+   Level III Encapsulated PostScript
     EPSF  rw-   Encapsulated PostScript
     EPSI  rw-   Encapsulated PostScript Interchange format
      EPT  rw-   Encapsulated PostScript with TIFF preview
     EPT2  rw-   Encapsulated PostScript Level II with TIFF preview
     EPT3  rw+   Encapsulated PostScript Level III with TIFF preview
      ERF  r--   Epson RAW Format
      EXR  rw-   High Dynamic-range (HDR)
      FAX* rw+   Group 3 FAX
           FAX machines use non-square pixels which are 1.5 times wider than
           they are tall but computer displays use square pixels, therefore
           FAX images may appear to be narrow unless they are explicitly
           resized using a geometry of "150x100%".
           
     FILE* r--   Uniform Resource Locator (file://)
     FITS* rw-   Flexible Image Transport System
  FRACTAL* r--   Plasma fractal image
      FTP* r--   Uniform Resource Locator (ftp://)
      FTS* rw-   Flexible Image Transport System
        G* rw+   Raw green samples
       G3* rw-   Group 3 FAX
       G4* rw-   Group 4 FAX
      GIF* rw+   CompuServe graphics interchange format
    GIF87* rw-   CompuServe graphics interchange format (version 87a)
 GRADIENT* r--   Gradual linear passing from one shade to another
     GRAY* rw+   Raw gray samples
    GRAYA* rw+   Raw gray and alpha samples
   GROUP4* rw-   Raw CCITT Group4
     HALD* r--   Identity Hald color lookup table image
      HDR* rw+   Radiance RGBE image format
HISTOGRAM* -w-   Histogram of the image
      HRZ* rw-   Slow Scan TeleVision
      HTM* -w-   Hypertext Markup Language and a client-side image map
     HTML* -w-   Hypertext Markup Language and a client-side image map
     HTTP* r--   Uniform Resource Locator (http://)
    HTTPS* ---   Uniform Resource Locator (https://)
      ICB* rw-   Truevision Targa image
      ICO* rw+   Microsoft icon
     ICON* rw-   Microsoft icon
      IIQ  r--   Phase One Raw Image Format
     INFO  -w+   The image format and characteristics
   INLINE* rw+   Base64-encoded inline images
      IPL* rw+   IPL Image Sequence
   ISOBRL* -w-   ISO/TR 11548-1 format
  ISOBRL6* -w-   ISO/TR 11548-1 format 6dot
      J2C* rw-   JPEG-2000 Code Stream Syntax (2.1.2)
      J2K* rw-   JPEG-2000 Code Stream Syntax (2.1.2)
      JBG* rw+   Joint Bi-level Image experts Group interchange format (2.1)
     JBIG* rw+   Joint Bi-level Image experts Group interchange format (2.1)
      JNG* rw-   JPEG Network Graphics
           See http://www.libpng.org/pub/mng/ for details about the JNG
           format.
      JNX* r--   Garmin tile format
      JP2* rw-   JPEG-2000 File Format Syntax (2.1.2)
      JPC* rw-   JPEG-2000 Code Stream Syntax (2.1.2)
      JPE* rw-   Joint Photographic Experts Group JFIF format (libjpeg-turbo 1.4.2)
     JPEG* rw-   Joint Photographic Experts Group JFIF format (libjpeg-turbo 1.4.2)
      JPG* rw-   Joint Photographic Experts Group JFIF format (libjpeg-turbo 1.4.2)
      JPM* rw-   JPEG-2000 File Format Syntax (2.1.2)
      JPS* rw-   Joint Photographic Experts Group JFIF format (libjpeg-turbo 1.4.2)
      JPT* rw-   JPEG-2000 File Format Syntax (2.1.2)
     JSON  -w+   The image format and characteristics
        K* rw+   Raw black samples
      K25  r--   Kodak Digital Camera Raw Image Format
      KDC  r--   Kodak Digital Camera Raw Image Format
    LABEL* r--   Image label
        M* rw+   Raw magenta samples
      M2V  rw+   MPEG Video Stream
      M4V  rw+   Raw MPEG-4 Video
      MAC* r--   MAC Paint
      MAP* rw-   Colormap intensities and indices
     MASK* rw+   Image Clip Mask
      MAT  rw+   MATLAB level 5 image format
    MATTE* -w+   MATTE format
      MEF  r--   Mamiya Raw Image File
     MIFF* rw+   Magick Image File Format
      MKV  rw+   Multimedia Container
      MNG* rw+   Multiple-image Network Graphics (libpng 1.2.54)
           See http://www.libpng.org/pub/mng/ for details about the MNG
           format.
     MONO* rw-   Raw bi-level bitmap
      MOV  rw+   MPEG Video Stream
      MP4  rw+   MPEG-4 Video Stream
      MPC* rw+   Magick Persistent Cache image format
     MPEG  rw+   MPEG Video Stream
      MPG  rw+   MPEG Video Stream
      MRW  r--   Sony (Minolta) Raw Image File
      MSL* rw+   Magick Scripting Language
     MSVG  rw+   ImageMagick's own SVG internal renderer
      MTV* rw+   MTV Raytracing image format
      MVG* rw-   Magick Vector Graphics
      NEF  r--   Nikon Digital SLR Camera Raw Image File
      NRW  r--   Nikon Digital SLR Camera Raw Image File
     NULL* rw-   Constant image of uniform color
        O* rw+   Raw opacity samples
      ORF  r--   Olympus Digital Camera Raw Image File
      OTB* rw-   On-the-air bitmap
      OTF* r--   Open Type font (Freetype 2.6.1)
      PAL* rw-   16bit/pixel interleaved YUV
     PALM* rw+   Palm pixmap
      PAM* rw+   Common 2-dimensional bitmap format
    PANGO* r--   Pango Markup Language (Pangocairo 1.38.1)
  PATTERN* r--   Predefined pattern
      PBM* rw+   Portable bitmap format (black and white)
      PCD* rw-   Photo CD
     PCDS* rw-   Photo CD
      PCL  rw+   Printer Control Language
      PCT* rw-   Apple Macintosh QuickDraw/PICT
      PCX* rw-   ZSoft IBM PC Paintbrush
      PDB* rw+   Palm Database ImageViewer Format
      PDF  rw+   Portable Document Format
     PDFA  rw+   Portable Document Archive Format
      PEF  r--   Pentax Electronic File
      PES* r--   Embrid Embroidery Format
      PFA* r--   Postscript Type 1 font (ASCII) (Freetype 2.6.1)
      PFB* r--   Postscript Type 1 font (binary) (Freetype 2.6.1)
      PFM* rw+   Portable float format
      PGM* rw+   Portable graymap format (gray scale)
      PGX* rw-   JPEG 2000 uncompressed format
    PICON* rw-   Personal Icon
     PICT* rw-   Apple Macintosh QuickDraw/PICT
      PIX* r--   Alias/Wavefront RLE image format
    PJPEG* rw-   Joint Photographic Experts Group JFIF format (libjpeg-turbo 1.4.2)
   PLASMA* r--   Plasma fractal image
      PNG* rw-   Portable Network Graphics (libpng 1.2.54)
           See http://www.libpng.org/ for details about the PNG format.
    PNG00* rw-   PNG inheriting bit-depth, color-type from original, if possible
    PNG24* rw-   opaque or binary transparent 24-bit RGB (zlib 1.2.8)
    PNG32* rw-   opaque or transparent 32-bit RGBA
    PNG48* rw-   opaque or binary transparent 48-bit RGB
    PNG64* rw-   opaque or transparent 64-bit RGBA
     PNG8* rw-   8-bit indexed with optional binary transparency
      PNM* rw+   Portable anymap
      PPM* rw+   Portable pixmap format (color)
       PS  rw+   PostScript
      PS2  -w+   Level II PostScript
      PS3  -w+   Level III PostScript
      PSB* rw+   Adobe Large Document Format
      PSD* rw+   Adobe Photoshop bitmap
     PTIF* rw+   Pyramid encoded TIFF
      PWP* r--   Seattle Film Works
        R* rw+   Raw red samples
RADIAL-GRADIENT* r--   Gradual radial passing from one shade to another
      RAF  r--   Fuji CCD-RAW Graphic File
      RAS* rw+   SUN Rasterfile
      RAW  r--   Raw
      RGB* rw+   Raw red, green, and blue samples
     RGBA* rw+   Raw red, green, blue, and alpha samples
     RGBO* rw+   Raw red, green, blue, and opacity samples
      RGF* rw-   LEGO Mindstorms EV3 Robot Graphic Format (black and white)
      RLA* r--   Alias/Wavefront image
      RLE* r--   Utah Run length encoded image
      RMF  r--   Raw Media Format
      RW2  r--   Panasonic Lumix Raw Image
      SCR* r--   ZX-Spectrum SCREEN$
SCREENSHOT* r--   Screen shot
      SCT* r--   Scitex HandShake
      SFW* r--   Seattle Film Works
      SGI* rw+   Irix RGB image
    SHTML* -w-   Hypertext Markup Language and a client-side image map
      SIX* rw-   DEC SIXEL Graphics Format
    SIXEL* rw-   DEC SIXEL Graphics Format
SPARSE-COLOR* -w+   Sparse Color
      SR2  r--   Sony Raw Format 2
      SRF  r--   Sony Raw Format
  STEGANO* r--   Steganographic image
      SUN* rw+   SUN Rasterfile
      SVG  rw+   Scalable Vector Graphics (XML 2.9.3)
     SVGZ  rw+   Compressed Scalable Vector Graphics (XML 2.9.3)
     TEXT* r--   Text
      TGA* rw-   Truevision Targa image
THUMBNAIL* -w+   EXIF Profile Thumbnail
     TIFF* rw+   Tagged Image File Format (LIBTIFF, Version 4.0.6)
   TIFF64* rw-   Tagged Image File Format (64-bit) (LIBTIFF, Version 4.0.6)
     TILE* r--   Tile image with a texture
      TIM* r--   PSX TIM
      TTC* r--   TrueType font collection (Freetype 2.6.1)
      TTF* r--   TrueType font (Freetype 2.6.1)
      TXT* rw+   Text
     UBRL* -w-   Unicode Text format
    UBRL6* -w-   Unicode Text format 6dot
      UIL* -w-   X-Motif UIL table
     UYVY* rw-   16bit/pixel interleaved YUV
      VDA* rw-   Truevision Targa image
    VICAR* rw-   VICAR rasterfile format
      VID* rw+   Visual Image Directory
     VIFF* rw+   Khoros Visualization image
     VIPS* rw+   VIPS image
      VST* rw-   Truevision Targa image
     WBMP* rw-   Wireless Bitmap (level 0) image
      WMF* r--   Windows Meta File
      WMV  rw+   Windows Media Video
      WMZ* r--   Compressed Windows Meta File
      WPG* r--   Word Perfect Graphics
        X* rw+   X Image
      X3F  r--   Sigma Camera RAW Picture File
      XBM* rw-   X Windows system bitmap (black and white)
       XC* r--   Constant image uniform color
      XCF* r--   GIMP image
      XPM* rw-   X Windows system pixmap (color)
      XPS  r--   Microsoft XML Paper Specification
       XV* rw+   Khoros Visualization image
      XWD* rw-   X Windows system window dump (color)
        Y* rw+   Raw yellow samples
    YCbCr* rw+   Raw Y, Cb, and Cr samples
   YCbCrA* rw+   Raw Y, Cb, Cr, and alpha samples
      YUV* rw-   CCIR 601 4:1:1 or 4:2:2

* native blob support
r read support
w write support
+ support for multiple images

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

Posted: 2019-04-14T13:50:49-07:00
by fmw42
Sorry, I do not know much about libjpeg-turbo. My system has libjpeg 90.

If in doubt about the JPG on your server, then see about upgrading it if it is older than the one that works.

Sorry, I know little about AWS Lambda.

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

Posted: 2019-04-15T09:27:48-07:00
by chaddjohnson
magick wrote: 2019-04-13T12:59:09-07:00 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:

Code: Select all

$ gdb convert
run /tmp/input.jpg -profile /var/task/src/color-profiles/AdobeRGB1998.icc -profile /var/task/src/color-profiles/USWebCoatedSWOP.icc /tmp/output.jpg
where
Post the stack trace here so we can determine the source of the bug.
Hi Magick,

I ran the command with -verbose and -debug all flags. Here is the output:

Code: Select all

2019-04-15T16:23:27.870Z	785267f9-8353-4479-b43c-728f8fb867a8	Version: ImageMagick 7.0.8-41 Q16 x86_64 2019-04-15 https://imagemagick.org
Copyright: © 1999-2019 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP 
Delegates (built-in): bzlib fontconfig freetype gslib jng jpeg lcms lzma png ps tiff xml zlib

2019-04-15T16:24:07.939Z	785267f9-8353-4479-b43c-728f8fb867a8	{ Error: Command failed: convert -verbose -debug all input.jpg -profile /var/task/src/color-profiles/AdobeRGB1998.icc -profile /var/task/src/color-profiles/USWebCoatedSWOP.icc /tmp/output.jpg
2019-04-15T16:23:27+00:00 0:00.002 0.010u 7.0.8 Configure convert[13]: utility.c/ExpandFilenames/959/Configure
Command line: convert {-verbose} {-debug} {all} {input.jpg} {-profile} {/var/task/src/color-profiles/AdobeRGB1998.icc} {-profile} {/var/task/src/color-profiles/USWebCoatedSWOP.icc} {/tmp/output.jpg}
2019-04-15T16:23:27+00:00 0:00.003 0.010u 7.0.8 Policy convert[13]: policy.c/IsRightsAuthorized/609/Policy
Domain: Module; rights=Read; pattern="JPG" ...
2019-04-15T16:23:27+00:00 0:00.005 0.010u 7.0.8 Policy convert[13]: policy.c/IsRightsAuthorized/609/Policy
Domain: Path; rights=Read; pattern="input.jpg" ...
2019-04-15T16:23:27+00:00 0:00.006 0.010u 7.0.8 Blob convert[13]: blob.c/OpenBlob/3390/Blob
read 3 magic header bytes
2019-04-15T16:23:27+00:00 0:00.006 0.010u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
Map: 2.79088MiB/2.79088MiB/6.166GiB
2019-04-15T16:23:27+00:00 0:00.007 0.010u 7.0.8 Resource convert[13]: resource.c/RelinquishMagickResource/1081/Resource
Map: 2.79088MiB/0B/6.166GiB
2019-04-15T16:23:27+00:00 0:00.007 0.010u 7.0.8 Cache convert[13]: cache.c/DestroyPixelCache/1039/Cache
destroy 
2019-04-15T16:23:27+00:00 0:00.007 0.010u 7.0.8 Policy convert[13]: policy.c/IsRightsAuthorized/609/Policy
Domain: Path; rights=Read; pattern="input.jpg" ...
2019-04-15T16:23:27+00:00 0:00.007 0.010u 7.0.8 Blob convert[13]: blob.c/OpenBlob/3390/Blob
read 3 magic header bytes
2019-04-15T16:23:27+00:00 0:00.007 0.010u 7.0.8 Cache convert[13]: cache.c/DestroyPixelCache/1039/Cache
destroy 
2019-04-15T16:23:27+00:00 0:00.007 0.010u 7.0.8 Policy convert[13]: policy.c/IsRightsAuthorized/609/Policy
Domain: Coder; rights=Read; pattern="JPEG" ...
2019-04-15T16:23:27+00:00 0:00.007 0.010u 7.0.8 Policy convert[13]: policy.c/IsRightsAuthorized/609/Policy
Domain: Path; rights=Read; pattern="input.jpg" ...
2019-04-15T16:23:27+00:00 0:00.007 0.010u 7.0.8 Blob convert[13]: blob.c/OpenBlob/3390/Blob
read 3 magic header bytes
2019-04-15T16:23:27+00:00 0:00.007 0.010u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
Map: 2.79088MiB/2.79088MiB/6.166GiB
2019-04-15T16:23:27+00:00 0:00.007 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: "Start of Image"
2019-04-15T16:23:27+00:00 0:00.007 0.010u 7.0.8 Coder convert[13]: jpeg.c/ReadProfile/818/Coder
Profile: exif, 22 bytes
2019-04-15T16:23:27+00:00 0:00.007 0.010u 7.0.8 Coder convert[13]: jpeg.c/ReadProfile/818/Coder
Profile: APP12, 15 bytes
2019-04-15T16:23:27+00:00 0:00.008 0.010u 7.0.8 Coder convert[13]: jpeg.c/ReadProfile/818/Coder
Profile: xmp, 907 bytes
2019-04-15T16:23:27+00:00 0:00.008 0.010u 7.0.8 Coder convert[13]: jpeg.c/ReadICCProfile/575/Coder
Profile: ICC, 560 bytes
2019-04-15T16:23:27+00:00 0:00.008 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: "Adobe APP14 marker: version 100, flags 0xc000 0x0000, transform 1"
2019-04-15T16:23:27+00:00 0:00.008 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: "Define Quantization Table 0 precision 0"
2019-04-15T16:23:27+00:00 0:00.008 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: "Define Quantization Table 1 precision 0"
2019-04-15T16:23:27+00:00 0:00.008 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: "Start Of Frame 0xc0: width=9000, height=13023, components=3"
2019-04-15T16:23:27+00:00 0:00.008 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " Component 1: 2hx2v q=0"
2019-04-15T16:23:27+00:00 0:00.008 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " Component 2: 1hx1v q=1"
2019-04-15T16:23:27+00:00 0:00.008 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " Component 3: 1hx1v q=1"
2019-04-15T16:23:27+00:00 0:00.008 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: "Define Huffman Table 0x00"
2019-04-15T16:23:27+00:00 0:00.008 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " 0 1 5 1 1 1 1 1"
2019-04-15T16:23:27+00:00 0:00.008 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " 1 0 0 0 0 0 0 0"
2019-04-15T16:23:27+00:00 0:00.008 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: "Define Huffman Table 0x01"
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " 0 1 5 1 1 1 1 1"
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " 1 0 0 0 0 0 0 0"
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: "Define Huffman Table 0x10"
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " 0 1 4 1 3 2 4 2"
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " 5 7 6 8 5 3 12 51"
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: "Define Huffman Table 0x11"
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " 0 2 2 1 2 4 4 3"
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " 4 5 6 7 7 6 5 53"
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: "Start Of Scan: 3 components"
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " Component 1: dc=0 ac=0"
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " Component 2: dc=1 ac=1"
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " Component 3: dc=1 ac=1"
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " Ss=0, Se=63, Ah=0, Al=0"
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/ReadJPEGImage/1368/Coder
Interlace: nonprogressive
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/ReadJPEGImage/1370/Coder
Data precision: 8
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/ReadJPEGImage/1372/Coder
Geometry: 9000x13023
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGSetImageQuality/943/Coder
Quality: 69 (approximate)
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGSetImageSamplingFactor/1033/Coder
Colorspace: RGB
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGSetImageSamplingFactor/1061/Coder
Sampling Factors: 2x2,1x1,1x1
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
ListLength: 1/0/9.22337E
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Pixel convert[13]: pixel.c/SetPixelChannelMask/6291/Pixel
input.jpg[07ffffff]
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6175/Pixel
input.jpg[07ffffff]
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6272/Pixel
0: red (update)
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6272/Pixel
1: green (update)
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6272/Pixel
2: blue (update)
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
Area: 117207000B/0B/6.166GiB
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
Memory: 1.30989GiB/1.30989GiB/3.083GiB
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Cache convert[13]: cache.c/OpenPixelCache/3765/Cache
open input.jpg[0] (Heap Memory, 9000x13023x3 1.30989GiB)
2019-04-15T16:23:30+00:00 0:02.699 2.690u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: "End Of Image"
2019-04-15T16:23:30+00:00 0:02.699 2.690u 7.0.8 Resource convert[13]: resource.c/RelinquishMagickResource/1081/Resource
Map: 2.79088MiB/0B/6.166GiB
input.jpg JPEG 9000x13023 9000x13023+0+0 8-bit sRGB 2.79088MiB 2.680u 0:02.694
2019-04-15T16:23:30+00:00 0:02.702 2.690u 7.0.8 Policy convert[13]: policy.c/IsRightsAuthorized/609/Policy
Domain: Module; rights=Read; pattern="ICC" ...
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Policy convert[13]: policy.c/IsRightsAuthorized/609/Policy
Domain: Path; rights=Read; pattern="/var/task/src/color-profiles/AdobeRGB1998.icc" ...
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Blob convert[13]: blob.c/OpenBlob/3390/Blob
read 3 magic header bytes
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Cache convert[13]: cache.c/DestroyPixelCache/1039/Cache
destroy 
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Policy convert[13]: policy.c/IsRightsAuthorized/609/Policy
Domain: Path; rights=Read; pattern="/var/task/src/color-profiles/AdobeRGB1998.icc" ...
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Blob convert[13]: blob.c/OpenBlob/3390/Blob
read 3 magic header bytes
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Cache convert[13]: cache.c/DestroyPixelCache/1039/Cache
destroy 
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Policy convert[13]: policy.c/IsRightsAuthorized/609/Policy
Domain: Coder; rights=Read; pattern="ICC" ...
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Policy convert[13]: policy.c/IsRightsAuthorized/609/Policy
Domain: Path; rights=Read; pattern="/var/task/src/color-profiles/AdobeRGB1998.icc" ...
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Blob convert[13]: blob.c/OpenBlob/3390/Blob
read 3 magic header bytes
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
ListLength: 1/0/9.22337E
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Pixel convert[13]: pixel.c/SetPixelChannelMask/6291/Pixel
/var/task/src/color-profiles/AdobeRGB1998.icc[07ffffff]
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6175/Pixel
/var/task/src/color-profiles/AdobeRGB1998.icc[07ffffff]
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6272/Pixel
0: red (update)
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6272/Pixel
1: green (update)
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6272/Pixel
2: blue (update)
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
Area: 1B/0B/6.166GiB
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
Memory: 12B/1.30989GiB/3.083GiB
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Cache convert[13]: cache.c/OpenPixelCache/3765/Cache
open /var/task/src/color-profiles/AdobeRGB1998.icc[0] (Heap Memory, 1x1x3 12B)
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Cache convert[13]: cache.c/DestroyPixelCache/1039/Cache
destroy 
/var/task/src/color-profiles/AdobeRGB1998.icc ICC 1x1 1x1+0+0 16-bit sRGB 560B 0.000u 0:00.000
2019-04-15T16:24:06+00:00 0:39.098 58.880u 7.0.8 Policy convert[13]: policy.c/IsRightsAuthorized/609/Policy
Domain: Path; rights=Read; pattern="/var/task/src/color-profiles/USWebCoatedSWOP.icc" ...
2019-04-15T16:24:06+00:00 0:39.099 58.890u 7.0.8 Blob convert[13]: blob.c/OpenBlob/3390/Blob
read 3 magic header bytes
2019-04-15T16:24:06+00:00 0:39.099 58.890u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
Map: 557168B/557168B/6.166GiB
2019-04-15T16:24:06+00:00 0:39.099 58.890u 7.0.8 Resource convert[13]: resource.c/RelinquishMagickResource/1081/Resource
Map: 557168B/0B/6.166GiB
2019-04-15T16:24:06+00:00 0:39.099 58.890u 7.0.8 Cache convert[13]: cache.c/DestroyPixelCache/1039/Cache
destroy 
2019-04-15T16:24:06+00:00 0:39.099 58.890u 7.0.8 Policy convert[13]: policy.c/IsRightsAuthorized/609/Policy
Domain: Path; rights=Read; pattern="/var/task/src/color-profiles/USWebCoatedSWOP.icc" ...
2019-04-15T16:24:06+00:00 0:39.099 58.890u 7.0.8 Blob convert[13]: blob.c/OpenBlob/3390/Blob
read 3 magic header bytes
2019-04-15T16:24:06+00:00 0:39.099 58.890u 7.0.8 Cache convert[13]: cache.c/DestroyPixelCache/1039/Cache
destroy 
2019-04-15T16:24:06+00:00 0:39.099 58.890u 7.0.8 Policy convert[13]: policy.c/IsRightsAuthorized/609/Policy
Domain: Coder; rights=Read; pattern="ICC" ...
2019-04-15T16:24:06+00:00 0:39.100 58.890u 7.0.8 Policy convert[13]: policy.c/IsRightsAuthorized/609/Policy
Domain: Path; rights=Read; pattern="/var/task/src/color-profiles/USWebCoatedSWOP.icc" ...
2019-04-15T16:24:06+00:00 0:39.100 58.890u 7.0.8 Blob convert[13]: blob.c/OpenBlob/3390/Blob
read 3 magic header bytes
2019-04-15T16:24:06+00:00 0:39.100 58.890u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
Map: 557168B/557168B/6.166GiB
2019-04-15T16:24:06+00:00 0:39.100 58.890u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
ListLength: 1/0/9.22337E
2019-04-15T16:24:06+00:00 0:39.100 58.890u 7.0.8 Pixel convert[13]: pixel.c/SetPixelChannelMask/6291/Pixel
/var/task/src/color-profiles/USWebCoatedSWOP.icc[07ffffff]
2019-04-15T16:24:06+00:00 0:39.100 58.890u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6175/Pixel
/var/task/src/color-profiles/USWebCoatedSWOP.icc[07ffffff]
2019-04-15T16:24:06+00:00 0:39.100 58.890u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6272/Pixel
0: red (update)
2019-04-15T16:24:06+00:00 0:39.100 58.890u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6272/Pixel
1: green (update)
2019-04-15T16:24:06+00:00 0:39.100 58.890u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6272/Pixel
2: blue (update)
2019-04-15T16:24:06+00:00 0:39.100 58.890u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
Area: 1B/0B/6.166GiB
2019-04-15T16:24:06+00:00 0:39.100 58.890u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
Memory: 12B/1.30989GiB/3.083GiB
2019-04-15T16:24:06+00:00 0:39.100 58.890u 7.0.8 Cache convert[13]: cache.c/OpenPixelCache/3765/Cache
open /var/task/src/color-profiles/USWebCoatedSWOP.icc[0] (Heap Memory, 1x1x3 12B)
2019-04-15T16:24:06+00:00 0:39.106 58.890u 7.0.8 Cache convert[13]: cache.c/DestroyPixelCache/1039/Cache
destroy 
2019-04-15T16:24:06+00:00 0:39.106 58.890u 7.0.8 Resource convert[13]: resource.c/RelinquishMagickResource/1081/Resource
Map: 557168B/0B/6.166GiB
/var/task/src/color-profiles/USWebCoatedSWOP.icc ICC 1x1 1x1+0+0 16-bit sRGB 557168B 0.000u 0:00.006
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
ListLength: 1/0/9.22337E
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Pixel convert[13]: pixel.c/SetPixelChannelMask/6291/Pixel
input.jpg[07ffffff]
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6175/Pixel
input.jpg[07ffffff]
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6272/Pixel
0: cyan (update)
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6272/Pixel
1: magenta (update)
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6272/Pixel
2: yellow (update)
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6272/Pixel
3: black (update)
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
Area: 117207000B/0B/6.166GiB
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
Memory: 1.74652GiB/3.05641GiB/3.083GiB
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
Disk: 1.74652GiB/1.74652GiB/8EiB
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Resource convert[13]: resource.c/AcquireUniqueFileResource/578/Resource
...
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Resource convert[13]: resource.c/AcquireUniqueFileResource/634/Resource
/tmp/magick-13vh4I1TV1sk79
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
File: 1/1/768
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Cache convert[13]: cache.c/SetPixelCacheExtent/3576/Cache
extend input.jpg[0] (/tmp/magick-13vh4I1TV1sk79[3], disk, 1.87531GB)
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
Map: 1.74652GiB/1.74652GiB/6.166GiB
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Resource convert[13]: resource.c/RelinquishMagickResource/1081/Resource
File: 1/0/768
2019-04-15T16:24:07+00:00 0:39.942 59.870u 7.0.8 Exception convert[13]: utility.c/ShredFile/1843/Exception
Failed to remove: /tmp/magick-13vh4I1TV1sk79

at ChildProcess.exithandler (child_process.js:275:12)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
cause: 
{ Error: Command failed: convert -verbose -debug all input.jpg -profile /var/task/src/color-profiles/AdobeRGB1998.icc -profile /var/task/src/color-profiles/USWebCoatedSWOP.icc /tmp/output.jpg
2019-04-15T16:23:27+00:00 0:00.002 0.010u 7.0.8 Configure convert[13]: utility.c/ExpandFilenames/959/Configure
Command line: convert {-verbose} {-debug} {all} {input.jpg} {-profile} {/var/task/src/color-profiles/AdobeRGB1998.icc} {-profile} {/var/task/src/color-profiles/USWebCoatedSWOP.icc} {/tmp/output.jpg}
2019-04-15T16:23:27+00:00 0:00.003 0.010u 7.0.8 Policy convert[13]: policy.c/IsRightsAuthorized/609/Policy
Domain: Module; rights=Read; pattern="JPG" ...
2019-04-15T16:23:27+00:00 0:00.005 0.010u 7.0.8 Policy convert[13]: policy.c/IsRightsAuthorized/609/Policy
Domain: Path; rights=Read; pattern="input.jpg" ...
2019-04-15T16:23:27+00:00 0:00.006 0.010u 7.0.8 Blob convert[13]: blob.c/OpenBlob/3390/Blob
read 3 magic header bytes
2019-04-15T16:23:27+00:00 0:00.006 0.010u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
Map: 2.79088MiB/2.79088MiB/6.166GiB
2019-04-15T16:23:27+00:00 0:00.007 0.010u 7.0.8 Resource convert[13]: resource.c/RelinquishMagickResource/1081/Resource
Map: 2.79088MiB/0B/6.166GiB
2019-04-15T16:23:27+00:00 0:00.007 0.010u 7.0.8 Cache convert[13]: cache.c/DestroyPixelCache/1039/Cache
destroy 
2019-04-15T16:23:27+00:00 0:00.007 0.010u 7.0.8 Policy convert[13]: policy.c/IsRightsAuthorized/609/Policy
Domain: Path; rights=Read; pattern="input.jpg" ...
2019-04-15T16:23:27+00:00 0:00.007 0.010u 7.0.8 Blob convert[13]: blob.c/OpenBlob/3390/Blob
read 3 magic header bytes
2019-04-15T16:23:27+00:00 0:00.007 0.010u 7.0.8 Cache convert[13]: cache.c/DestroyPixelCache/1039/Cache
destroy 
2019-04-15T16:23:27+00:00 0:00.007 0.010u 7.0.8 Policy convert[13]: policy.c/IsRightsAuthorized/609/Policy
Domain: Coder; rights=Read; pattern="JPEG" ...
2019-04-15T16:23:27+00:00 0:00.007 0.010u 7.0.8 Policy convert[13]: policy.c/IsRightsAuthorized/609/Policy
Domain: Path; rights=Read; pattern="input.jpg" ...
2019-04-15T16:23:27+00:00 0:00.007 0.010u 7.0.8 Blob convert[13]: blob.c/OpenBlob/3390/Blob
read 3 magic header bytes
2019-04-15T16:23:27+00:00 0:00.007 0.010u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
Map: 2.79088MiB/2.79088MiB/6.166GiB
2019-04-15T16:23:27+00:00 0:00.007 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: "Start of Image"
2019-04-15T16:23:27+00:00 0:00.007 0.010u 7.0.8 Coder convert[13]: jpeg.c/ReadProfile/818/Coder
Profile: exif, 22 bytes
2019-04-15T16:23:27+00:00 0:00.007 0.010u 7.0.8 Coder convert[13]: jpeg.c/ReadProfile/818/Coder
Profile: APP12, 15 bytes
2019-04-15T16:23:27+00:00 0:00.008 0.010u 7.0.8 Coder convert[13]: jpeg.c/ReadProfile/818/Coder
Profile: xmp, 907 bytes
2019-04-15T16:23:27+00:00 0:00.008 0.010u 7.0.8 Coder convert[13]: jpeg.c/ReadICCProfile/575/Coder
Profile: ICC, 560 bytes
2019-04-15T16:23:27+00:00 0:00.008 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: "Adobe APP14 marker: version 100, flags 0xc000 0x0000, transform 1"
2019-04-15T16:23:27+00:00 0:00.008 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: "Define Quantization Table 0 precision 0"
2019-04-15T16:23:27+00:00 0:00.008 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: "Define Quantization Table 1 precision 0"
2019-04-15T16:23:27+00:00 0:00.008 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: "Start Of Frame 0xc0: width=9000, height=13023, components=3"
2019-04-15T16:23:27+00:00 0:00.008 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " Component 1: 2hx2v q=0"
2019-04-15T16:23:27+00:00 0:00.008 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " Component 2: 1hx1v q=1"
2019-04-15T16:23:27+00:00 0:00.008 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " Component 3: 1hx1v q=1"
2019-04-15T16:23:27+00:00 0:00.008 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: "Define Huffman Table 0x00"
2019-04-15T16:23:27+00:00 0:00.008 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " 0 1 5 1 1 1 1 1"
2019-04-15T16:23:27+00:00 0:00.008 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " 1 0 0 0 0 0 0 0"
2019-04-15T16:23:27+00:00 0:00.008 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: "Define Huffman Table 0x01"
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " 0 1 5 1 1 1 1 1"
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " 1 0 0 0 0 0 0 0"
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: "Define Huffman Table 0x10"
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " 0 1 4 1 3 2 4 2"
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " 5 7 6 8 5 3 12 51"
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: "Define Huffman Table 0x11"
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " 0 2 2 1 2 4 4 3"
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " 4 5 6 7 7 6 5 53"
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: "Start Of Scan: 3 components"
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " Component 1: dc=0 ac=0"
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " Component 2: dc=1 ac=1"
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " Component 3: dc=1 ac=1"
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: " Ss=0, Se=63, Ah=0, Al=0"
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/ReadJPEGImage/1368/Coder
Interlace: nonprogressive
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/ReadJPEGImage/1370/Coder
Data precision: 8
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/ReadJPEGImage/1372/Coder
Geometry: 9000x13023
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGSetImageQuality/943/Coder
Quality: 69 (approximate)
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGSetImageSamplingFactor/1033/Coder
Colorspace: RGB
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Coder convert[13]: jpeg.c/JPEGSetImageSamplingFactor/1061/Coder
Sampling Factors: 2x2,1x1,1x1
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
ListLength: 1/0/9.22337E
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Pixel convert[13]: pixel.c/SetPixelChannelMask/6291/Pixel
input.jpg[07ffffff]
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6175/Pixel
input.jpg[07ffffff]
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6272/Pixel
0: red (update)
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6272/Pixel
1: green (update)
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6272/Pixel
2: blue (update)
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
Area: 117207000B/0B/6.166GiB
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
Memory: 1.30989GiB/1.30989GiB/3.083GiB
2019-04-15T16:23:27+00:00 0:00.009 0.010u 7.0.8 Cache convert[13]: cache.c/OpenPixelCache/3765/Cache
open input.jpg[0] (Heap Memory, 9000x13023x3 1.30989GiB)
2019-04-15T16:23:30+00:00 0:02.699 2.690u 7.0.8 Coder convert[13]: jpeg.c/JPEGWarningHandler/406/Coder
[input.jpg] JPEG Trace: "End Of Image"
2019-04-15T16:23:30+00:00 0:02.699 2.690u 7.0.8 Resource convert[13]: resource.c/RelinquishMagickResource/1081/Resource
Map: 2.79088MiB/0B/6.166GiB
input.jpg JPEG 9000x13023 9000x13023+0+0 8-bit sRGB 2.79088MiB 2.680u 0:02.694
2019-04-15T16:23:30+00:00 0:02.702 2.690u 7.0.8 Policy convert[13]: policy.c/IsRightsAuthorized/609/Policy
Domain: Module; rights=Read; pattern="ICC" ...
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Policy convert[13]: policy.c/IsRightsAuthorized/609/Policy
Domain: Path; rights=Read; pattern="/var/task/src/color-profiles/AdobeRGB1998.icc" ...
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Blob convert[13]: blob.c/OpenBlob/3390/Blob
read 3 magic header bytes
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Cache convert[13]: cache.c/DestroyPixelCache/1039/Cache
destroy 
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Policy convert[13]: policy.c/IsRightsAuthorized/609/Policy
Domain: Path; rights=Read; pattern="/var/task/src/color-profiles/AdobeRGB1998.icc" ...
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Blob convert[13]: blob.c/OpenBlob/3390/Blob
read 3 magic header bytes
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Cache convert[13]: cache.c/DestroyPixelCache/1039/Cache
destroy 
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Policy convert[13]: policy.c/IsRightsAuthorized/609/Policy
Domain: Coder; rights=Read; pattern="ICC" ...
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Policy convert[13]: policy.c/IsRightsAuthorized/609/Policy
Domain: Path; rights=Read; pattern="/var/task/src/color-profiles/AdobeRGB1998.icc" ...
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Blob convert[13]: blob.c/OpenBlob/3390/Blob
read 3 magic header bytes
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
ListLength: 1/0/9.22337E
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Pixel convert[13]: pixel.c/SetPixelChannelMask/6291/Pixel
/var/task/src/color-profiles/AdobeRGB1998.icc[07ffffff]
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6175/Pixel
/var/task/src/color-profiles/AdobeRGB1998.icc[07ffffff]
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6272/Pixel
0: red (update)
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6272/Pixel
1: green (update)
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6272/Pixel
2: blue (update)
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
Area: 1B/0B/6.166GiB
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
Memory: 12B/1.30989GiB/3.083GiB
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Cache convert[13]: cache.c/OpenPixelCache/3765/Cache
open /var/task/src/color-profiles/AdobeRGB1998.icc[0] (Heap Memory, 1x1x3 12B)
2019-04-15T16:23:30+00:00 0:02.705 2.700u 7.0.8 Cache convert[13]: cache.c/DestroyPixelCache/1039/Cache
destroy 
/var/task/src/color-profiles/AdobeRGB1998.icc ICC 1x1 1x1+0+0 16-bit sRGB 560B 0.000u 0:00.000
2019-04-15T16:24:06+00:00 0:39.098 58.880u 7.0.8 Policy convert[13]: policy.c/IsRightsAuthorized/609/Policy
Domain: Path; rights=Read; pattern="/var/task/src/color-profiles/USWebCoatedSWOP.icc" ...
2019-04-15T16:24:06+00:00 0:39.099 58.890u 7.0.8 Blob convert[13]: blob.c/OpenBlob/3390/Blob
read 3 magic header bytes
2019-04-15T16:24:06+00:00 0:39.099 58.890u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
Map: 557168B/557168B/6.166GiB
2019-04-15T16:24:06+00:00 0:39.099 58.890u 7.0.8 Resource convert[13]: resource.c/RelinquishMagickResource/1081/Resource
Map: 557168B/0B/6.166GiB
2019-04-15T16:24:06+00:00 0:39.099 58.890u 7.0.8 Cache convert[13]: cache.c/DestroyPixelCache/1039/Cache
destroy 
2019-04-15T16:24:06+00:00 0:39.099 58.890u 7.0.8 Policy convert[13]: policy.c/IsRightsAuthorized/609/Policy
Domain: Path; rights=Read; pattern="/var/task/src/color-profiles/USWebCoatedSWOP.icc" ...
2019-04-15T16:24:06+00:00 0:39.099 58.890u 7.0.8 Blob convert[13]: blob.c/OpenBlob/3390/Blob
read 3 magic header bytes
2019-04-15T16:24:06+00:00 0:39.099 58.890u 7.0.8 Cache convert[13]: cache.c/DestroyPixelCache/1039/Cache
destroy 
2019-04-15T16:24:06+00:00 0:39.099 58.890u 7.0.8 Policy convert[13]: policy.c/IsRightsAuthorized/609/Policy
Domain: Coder; rights=Read; pattern="ICC" ...
2019-04-15T16:24:06+00:00 0:39.100 58.890u 7.0.8 Policy convert[13]: policy.c/IsRightsAuthorized/609/Policy
Domain: Path; rights=Read; pattern="/var/task/src/color-profiles/USWebCoatedSWOP.icc" ...
2019-04-15T16:24:06+00:00 0:39.100 58.890u 7.0.8 Blob convert[13]: blob.c/OpenBlob/3390/Blob
read 3 magic header bytes
2019-04-15T16:24:06+00:00 0:39.100 58.890u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
Map: 557168B/557168B/6.166GiB
2019-04-15T16:24:06+00:00 0:39.100 58.890u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
ListLength: 1/0/9.22337E
2019-04-15T16:24:06+00:00 0:39.100 58.890u 7.0.8 Pixel convert[13]: pixel.c/SetPixelChannelMask/6291/Pixel
/var/task/src/color-profiles/USWebCoatedSWOP.icc[07ffffff]
2019-04-15T16:24:06+00:00 0:39.100 58.890u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6175/Pixel
/var/task/src/color-profiles/USWebCoatedSWOP.icc[07ffffff]
2019-04-15T16:24:06+00:00 0:39.100 58.890u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6272/Pixel
0: red (update)
2019-04-15T16:24:06+00:00 0:39.100 58.890u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6272/Pixel
1: green (update)
2019-04-15T16:24:06+00:00 0:39.100 58.890u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6272/Pixel
2: blue (update)
2019-04-15T16:24:06+00:00 0:39.100 58.890u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
Area: 1B/0B/6.166GiB
2019-04-15T16:24:06+00:00 0:39.100 58.890u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
Memory: 12B/1.30989GiB/3.083GiB
2019-04-15T16:24:06+00:00 0:39.100 58.890u 7.0.8 Cache convert[13]: cache.c/OpenPixelCache/3765/Cache
open /var/task/src/color-profiles/USWebCoatedSWOP.icc[0] (Heap Memory, 1x1x3 12B)
2019-04-15T16:24:06+00:00 0:39.106 58.890u 7.0.8 Cache convert[13]: cache.c/DestroyPixelCache/1039/Cache
destroy 
2019-04-15T16:24:06+00:00 0:39.106 58.890u 7.0.8 Resource convert[13]: resource.c/RelinquishMagickResource/1081/Resource
Map: 557168B/0B/6.166GiB
/var/task/src/color-profiles/USWebCoatedSWOP.icc ICC 1x1 1x1+0+0 16-bit sRGB 557168B 0.000u 0:00.006
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
ListLength: 1/0/9.22337E
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Pixel convert[13]: pixel.c/SetPixelChannelMask/6291/Pixel
input.jpg[07ffffff]
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6175/Pixel
input.jpg[07ffffff]
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6272/Pixel
0: cyan (update)
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6272/Pixel
1: magenta (update)
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6272/Pixel
2: yellow (update)
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Pixel convert[13]: pixel.c/LogPixelChannels/6272/Pixel
3: black (update)
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
Area: 117207000B/0B/6.166GiB
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
Memory: 1.74652GiB/3.05641GiB/3.083GiB
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
Disk: 1.74652GiB/1.74652GiB/8EiB
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Resource convert[13]: resource.c/AcquireUniqueFileResource/578/Resource
...
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Resource convert[13]: resource.c/AcquireUniqueFileResource/634/Resource
/tmp/magick-13vh4I1TV1sk79
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
File: 1/1/768
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Cache convert[13]: cache.c/SetPixelCacheExtent/3576/Cache
extend input.jpg[0] (/tmp/magick-13vh4I1TV1sk79[3], disk, 1.87531GB)
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Resource convert[13]: resource.c/AcquireMagickResource/385/Resource
Map: 1.74652GiB/1.74652GiB/6.166GiB
2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Resource convert[13]: resource.c/RelinquishMagickResource/1081/Resource
File: 1/0/768
2019-04-15T16:24:07+00:00 0:39.942 59.870u 7.0.8 Exception convert[13]: utility.c/ShredFile/1843/Exception
Failed to remove: /tmp/magick-13vh4I1TV1sk79

at ChildProcess.exithandler (child_process.js:275:12)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
killed: false,
code: null,
signal: 'SIGABRT',
cmd: 'convert -verbose -debug all input.jpg -profile /var/task/src/color-profiles/AdobeRGB1998.icc -profile /var/task/src/color-profiles/USWebCoatedSWOP.icc /tmp/output.jpg' },
isOperational: true,
killed: false,
code: null,
signal: 'SIGABRT',
cmd: 'convert -verbose -debug all input.jpg -profile /var/task/src/color-profiles/AdobeRGB1998.icc -profile /var/task/src/color-profiles/USWebCoatedSWOP.icc /tmp/output.jpg' }
This is using the latest beta version, 7.0.8-41.

The error "Failed to remove: /tmp/magick-13vh4I1TV1sk79" is suspicious. I thought maybe it was related to the bug mentioned here, but it appears not.

Have you seen this issue before (where it is unable to remove a tmp file)?

EDIT: Hmm, this line makes me think it is running out of disk space. The environment only has 512MB (435MB after dependencies are added) space free to work with:

Code: Select all

2019-04-15T16:24:06+00:00 0:39.110 58.890u 7.0.8 Cache convert[13]: cache.c/SetPixelCacheExtent/3576/Cache
extend input.jpg[0] (/tmp/magick-13vh4I1TV1sk79[3], disk, 1.87531GB)
When I add

Code: Select all

-limit memory 3000MB -limit disk 435MB
I see

Code: Select all

2019-04-15T16:50:51+00:00 0:39.392 59.360u 7.0.8 Cache convert[12]: cache.c/DestroyPixelCache/1039/Cache
destroy input.jpg[0]
convert: CacheResourcesExhausted `input.jpg' @ error/cache.c/OpenPixelCache/3843.
2019-04-15T16:50:51+00:00 0:39.392 59.360u 7.0.8 Cache convert[12]: cache.c/DestroyPixelCache/1039/Cache
destroy /var/task/src/color-profiles/USWebCoatedSWOP.icc[0]
2019-04-15T16:50:51+00:00 0:39.392 59.360u 7.0.8 Resource convert[12]: resource.c/RelinquishMagickResource/1081/Resource
Memory: 12B/1.30989GiB/3000000000B
2019-04-15T16:50:51+00:00 0:39.392 59.360u 7.0.8 Cache convert[12]: cache.c/DestroyPixelCache/1039/Cache
destroy /var/task/src/color-profiles/AdobeRGB1998.icc[0]
2019-04-15T16:50:51+00:00 0:39.392 59.360u 7.0.8 Resource convert[12]: resource.c/RelinquishMagickResource/1081/Resource
Memory: 12B/1.30989GiB/3000000000B