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 6561623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:36:38+00:00 2026-05-25T13:36:38+00:00

I’m using ImageMagick to convert a RAW file (*.nef extension) into a JPEG image.

  • 0

I’m using ImageMagick to convert a RAW file (*.nef extension) into a JPEG image. I’m actually doing this from within PHP, but not using the IMagick extension (I spent too much time banging my head against a wall trying to get that working that eventually I just gave up). Instead, I’m using PHP’s exec() function to call ImageMagick from the command line and just do the manipulations there.

Anyways, I wrote a simple PHP script to do this — to convert the NEF image into a JPEG image — and it worked! I ran it through a number of tests. When the JPEG didn’t exist, it created it. When the JPEG already did exist, it overwrote it. Perfect!

Until today. I made that script last Friday. Today (Monday), when it tried to use it, it stopped working. I literally changed nothing about it, but a couple days later it’s failing all the same tests that I ran on Friday. I can retrieve the output from the command line, and these are the errors it’s encountering this time around:

Magick: `%s' (%d) dcraw.exe -4 -w -O "C:/Windows/TEMP/magick-iDvVnHw-.ppm" "C:/Windows/TEMP/magick-hYeYwWRd" @ error/utility.c/SystemCommand/2094.
Magick: delegate failed `dcraw.exe -4 -w -O "%u.ppm" "%i"' @ error/delegate.c/InvokeDelegate/1058.
Magick: unable to open image `C:/Windows/TEMP/magick-iDvVnHw-.ppm': No such file or directory @ error/blob.c/OpenBlob/2588.
Magick: missing an image filename `E:\test.jpg' @ error/convert.c/ConvertImageCommand/3015.

These errors didn’t show up on Friday. Why are they showing up now? What do they mean? And what can I do about them? Thanks in advance.

  • 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-05-25T13:36:39+00:00Added an answer on May 25, 2026 at 1:36 pm

    Well, I was able to solve it. I did two things, and I’m not entirely sure that the first thing had any impact or not, but I’ll mention both for anyone else struggling. First, since it seemed to be having trouble with a temp file, I changed the Windows security/permissions on the C:\Windows\TEMP folder to explicitly allow IIS_USER full control, as well as Everyone.

    But secondly, and more importantly, I changed the command I was passing into exec(). Previously my command looked something like this:

    $cmd  = 'C: & "C:\\Program Files (x86)\\ImageMagick\\convert.exe" ';
    $cmd .= '"E:\\test.nef" "E:\\test.jpg" 2>&1';
    exec($cmd, $output, $return);
    

    So instead I specified a new “temp” directory, and set the current path, like so:

    $cmd  = 'SET MAGICK_TMPDIR=E:\\Temp&SET path=C:\\Program Files (x86)\\;%path%& ';
    $cmd .= '"C:\\Program Files (x86)\\ImageMagick\\convert.exe" ';
    $cmd .= '"E:\\test.nef" "E:\\test.jpg" 2>&1';
    exec($cmd, $output, $return);
    

    And that did the trick! The script is working again.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,
I am currently running into a problem where an element is coming back from
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
Does anyone know how can I replace this 2 symbol below from the string
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and

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.