I'm having issues getting oiiotool to do a crop operation.

I have a 2K dpx.
https://github.com/jeremyselan/oiio/blob/crop/dpxtocrop.zip

I want to crop a particular image region, and write out a new output
image with just that area as the full frame.  (In this case a 1024x32
sub rect).

> oiiotool --crop 1024x32+626+103 dpxtocrop.dpx -o out.dpx
This gets us close.  The data window gets cropped to the correct area,
but overall image frame is still 2K.

So I try calling fullpixels after the crop:
--fullpixels - Sets the 'full' image range to be the pixel data window

> oiiotool --crop 1024x32+626+103 --fullpixels dpxtocrop.dpx -o out.dpx

But this appears to remove the cropping.  The output image is still
2K, and now I even have the other pixels back.

I took a stab at just directly setting the display windows, but this
command produces garbage.
> oiiotool --fullsize 1024x32+626+103 dpxtocrop.dpx -o out.dpx

--fullsize  %s         Set the display window (e.g., 1920x1080,
1024x768+100+0, -20-30)


Any ideas would be appreciated.

Thanks!

-- Jeremy
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to