192x128
384x256
768x512
1536x1024
3072x2048
By default when you load the PhotoCD file using MagickReadImage(), you get the 768 image. I need to select the largest available (3072 for my images), but don't know how.
I have the following program:
Code: Select all
def main () {
local w = NewMagickWand()
MagickReadImage(w, info("argv 1"))
print(MagickGetImageFormat(w))
print(MagickGetNumberImages(w))
print(MagickGetImageWidth(w), "x", MagickGetImageHeight(w))
DestroyMagickWand(w)
}
Code: Select all
PCD
1
768x512