Selecting PhotoCD size
Posted: 2007-03-16T08:31:52-07:00
A .pcd file (Kodak PhotoCD) potentially has a number of images in it, at different sizes:
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:
It produces the following output:
Anyone know how to select something other than the 768?
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