Skip to content

Commit 14a64d9

Browse files
Merge pull request #6 from chris-stones/corrected_image_magick_binary
Use the modern Image Magick binary name.
2 parents 86acb4b + d906a09 commit 14a64d9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

source/etcpack.cxx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -480,9 +480,9 @@ bool readSrcFile(char *filename,uint8 *&img,int &width,int &height, int &expande
480480
// for instance Image Magick. Just make sure the syntax can
481481
// be written as below:
482482
//
483-
// C:\imconv source.jpg dest.ppm
483+
// C:\magick convert source.jpg dest.ppm
484484
//
485-
sprintf(str,"imconv %s tmp.ppm\n", filename);
485+
sprintf(str,"magick convert %s tmp.ppm\n", filename);
486486
printf("Converting source file from %s to .ppm\n", filename);
487487
}
488488
// Execute system call
@@ -579,9 +579,9 @@ bool readSrcFileNoExpand(char *filename,uint8 *&img,int &width,int &height)
579579
// for instance Image Magick. Just make sure the syntax can
580580
// be written as below:
581581
//
582-
// C:\imconv source.jpg dest.ppm
582+
// C:\magick convert source.jpg dest.ppm
583583
//
584-
sprintf(str,"imconv %s tmp.ppm\n", filename);
584+
sprintf(str,"magick convert %s tmp.ppm\n", filename);
585585
// printf("Converting source file from %s to .ppm\n", filename);
586586
}
587587
// Execute system call
@@ -9491,7 +9491,7 @@ void writeOutputFile(char *dstfile, uint8* img, uint8* alphaimg, int width, int
94919491
// for instance Image Magick. Just make sure the syntax can
94929492
// be written as below:
94939493
//
9494-
// C:\imconv source.ppm dest.jpg
9494+
// C:\magick convert source.ppm dest.jpg
94959495
//
94969496
if(format==ETC2PACKAGE_RGBA_NO_MIPMAPS||format==ETC2PACKAGE_RGBA1_NO_MIPMAPS||format==ETC2PACKAGE_sRGBA_NO_MIPMAPS||format==ETC2PACKAGE_sRGBA1_NO_MIPMAPS)
94979497
{
@@ -9512,12 +9512,12 @@ void writeOutputFile(char *dstfile, uint8* img, uint8* alphaimg, int width, int
95129512
}
95139513
else if(format==ETC2PACKAGE_R_NO_MIPMAPS)
95149514
{
9515-
sprintf(str,"imconv alphaout.pgm %s\n",dstfile);
9515+
sprintf(str,"magick convert alphaout.pgm %s\n",dstfile);
95169516
printf("Converting destination file from .pgm to %s\n",dstfile);
95179517
}
95189518
else
95199519
{
9520-
sprintf(str,"imconv tmp.ppm %s\n",dstfile);
9520+
sprintf(str,"magick convert tmp.ppm %s\n",dstfile);
95219521
printf("Converting destination file from .ppm to %s\n",dstfile);
95229522
}
95239523
}
@@ -15942,7 +15942,7 @@ void compressFile(char *srcfile,char *dstfile)
1594215942
{
1594315943
char str[300];
1594415944
//printf("reading alpha channel....");
15945-
sprintf(str,"imconv %s -alpha extract alpha.pgm\n",srcfile);
15945+
sprintf(str,"magick convert %s -alpha extract alpha.pgm\n",srcfile);
1594615946
system(str);
1594715947
readAlpha(alphaimg,width,height,extendedwidth,extendedheight);
1594815948
printf("ok!\n");
@@ -15951,7 +15951,7 @@ void compressFile(char *srcfile,char *dstfile)
1595115951
else if(format==ETC2PACKAGE_R_NO_MIPMAPS)
1595215952
{
1595315953
char str[300];
15954-
sprintf(str,"imconv %s alpha.pgm\n",srcfile);
15954+
sprintf(str,"magick convert %s alpha.pgm\n",srcfile);
1595515955
system(str);
1595615956
readAlpha(alphaimg,width,height,extendedwidth,extendedheight);
1595715957
printf("read alpha ok, size is %d,%d (%d,%d)",width,height,extendedwidth,extendedheight);

0 commit comments

Comments
 (0)