Ciao a tutti,
sto provando ad utilizzare le funzioni di ImageMagick per convertire un file bmp in jpeg.

codice:
#include <windows.h>
#include <stdio.h>
#include "wand\magick_wand.h"

void Conversione()
{
bool err;    
MagickWand *mw = NULL;
    

    MagickWandGenesis();

    /* Create a wand */
    mw = NewMagickWand();

    /* Read the input image */
    
    err= MagickReadImage(mw,"treno.bmp");
    /* write it */
    err= MagickWriteImage(mw,"treno_jpg.jpg");

    /* Tidy up */
    if(mw) mw = DestroyMagickWand(mw);

    
    MagickWandTerminus();
}
Mi restituisce err = false .. e quindi non procede alla conversione.
Cosa sbaglio?
Il codice l'avevo preso come esempio dalla guida online di ImageMagick.

Grazie.