Imgconv

Open rose512.jpg and save it in the following formats: .png, .gif, .xpm and tiff.

Author: Valeriy Onuchin
This notebook tutorial was automatically generated with ROOTBOOK-izer from the macro found in the ROOT repository on Thursday, June 30, 2022 at 08:33 AM.

In [1]:
TImage *img = TImage::Open("$ROOTSYS/tutorials/image/rose512.jpg");
if (!img) {
   printf("Could not create an image... exit\n");
   return;
}

img->WriteImage("rose512.png");
img->WriteImage("rose512.gif");
img->WriteImage("rose512.xpm");
img->WriteImage("rose512.tiff");
Error in <TASImage::WriteImage>: error writing file rose512.gif