p = new Image::Magick; p->Read("imagefile.png"); p->Write("filename.jpg");