Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8828149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:32:28+00:00 2026-06-14T07:32:28+00:00

I have a couple of issues with node imagemagick. On certain image uploads I

  • 0

I have a couple of issues with node imagemagick. On certain image uploads I get this error:

/node_modules/imagemagick/imagemagick.js:126
    prop[comps[0].trim().toLowerCase()] = comps[1].trim()

TypeError: Cannot set property '20' of undefined

Any idea what that means? Some images work fine, others do this. In this case it’s a png image named “icon_75.png” – other pngs work fine, all created through same process.

It seems to be parsing the image info which includes a bunch of numbered lines for the histogram – seems like legit info.

'  Histogram:',
'       973: (107,108, 52) #6B6C34 srgb(107,108,52)',
'        70: (108,105, 55) #6C6937 srgb(108,105,55)',
'         2: (110,107, 58) #6E6B3A srgb(110,107,58)',
'         2: (112,109, 60) #706D3C srgb(112,109,60)',
'         1: (114,111, 63) #726F3F srgb(114,111,63)',
'         1: (115,113, 65) #737141 srgb(115,113,65)',
'        14: (116,117, 64) #747540 srgb(116,117,64)',
'         1: (117,114, 68) #757244 srgb(117,114,68)',
'         1: (120,117, 71) #787547 srgb(120,117,71)',
'         1: (121,119, 73) #797749 srgb(121,119,73)',
'        18: (124,121, 76) #7C794C srgb(124,121,76)',
'         6: (125,126, 77) #7D7E4D srgb(125,126,77)',
'         2: (130,127, 85) #827F55 srgb(130,127,85)',
'        20: (134,135, 89) #868759 srgb(134,135,89)',

My more important question is how to avoid crashing. I tried encapsulating the crop call in a catch block but that doesn’t work. Any suggestions on how to prevent my app from going down?

try {
  imageMagick.crop({
    width: opts.width,
    height: opts.height,
    srcPath: this.uploadDir + "/" + that.name,
    dstPath: this.uploadDir + "/" + version + "_" + that.name
  }, function(err, stdout, stderr) {
    if(err)
      console.log(err)
    else {
      console.log('Creating ' + version);
      ...
    }
  });
}
catch(e) {
  console.log('Whao');
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T07:32:29+00:00Added an answer on June 14, 2026 at 7:32 am

    So it seems that in some versions of ImageMagick the identify output has changed. There is also a possible bug in its output.

    I have filed an ImageMagick bug here: http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=22256

    And a Node ImageMagick bug here https://github.com/rsms/node-imagemagick/issues/67

    As of this writing no answer on either so I proceeded to make a fix.

    You will need to edit the node_modules/imagemagick/imagemagick.js file and look for the parseIdentify function – comment it out and use this one: https://gist.github.com/4066782

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a couple of issues with this if statement which checks if a
I have couple of issues- the first constraint on select is loaded when reference
I have a couple of things I'm working on, namely a page that issues
For the last couple months i have ben having some issues with my app.config
I have couple of questions about AS3 variables handling by AVM/compiler/scope .1. This code
T4MVC is cool, but I have a couple of issues integrating it in my
I have a couple issues with it: media fails to play and continues to
I have a couple of issues with SQLite query. Actually I start thinking that
I have a couple issues with a math program im currently working on im
I have been struggling with this issue for the past couple days: I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.