Giter VIP home page Giter VIP logo

Comments (4)

Webreaper avatar Webreaper commented on June 8, 2024

Hi,

If ImageMagick is in the path, Damselfly will find it. If not, there's nothing I can do.

Sorry I can't be of more help.

from damselfly.

sreerajp avatar sreerajp commented on June 8, 2024

ImageMagick is in path. But in your code you are checking for exitcode 0. It is returning exit code 4

from damselfly.

sreerajp avatar sreerajp commented on June 8, 2024

image

image

image

Code for Test.exe
namespace Test
{
class Program
{
private const string imageMagickExe = "convert";
static void Main(string[] args)
{

        var process = new Process();

        process.StartInfo.FileName = imageMagickExe;
        process.StartInfo.Arguments = "-version";
        process.StartInfo.RedirectStandardError = false;
        process.StartInfo.RedirectStandardOutput = true;
        process.StartInfo.UseShellExecute = false;
        process.StartInfo.CreateNoWindow = true;

        var success = process.Start();

        if (success)
        {
            process.WaitForExit();

            Console.WriteLine("Success: " + process.ExitCode);
        }
        else {
            Console.WriteLine("Failure");

        }

        
    }
}

}

from damselfly.

Webreaper avatar Webreaper commented on June 8, 2024

According to SO, it looks like error code 4 is happening because a convert.exe command that isn't ImageMagick is being executed.

https://stackoverflow.com/questions/50582885/imagemagick-convert-command-returning-error-code-4-when-used-with-php

So I suspect the answer is to move the PATH entry for ImageMagick nearer to the start of the path. Either that, or copy convert.exe into the folder that Damselfly runs from.

I could add an option to explicitly specify the IM path, but

  1. It's not really high on my list of priorities for Damselfly. I need to get image editing working, and face recognition up and running again.
  2. It would have to be Windows-only, and I don't really want to add OS specific logic.
  3. I only really support docker installations (as specified in the documentation) otherwise I'd spend my life trying to fix people's windows install issues, and I have little enough time to work on Damselfly as it is.

Sorry I can't help more.

If this is for HEIC support, I have a recently opened issue to handle that natively, rather than using ImageMagick. I'm far more likely to work on that. #479

from damselfly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.