GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

Crop filter does not respect -forceProcessingAtSize:

Open manjeettbz opened this issue 14 years ago • 7 comments

Hello Guys,

When i use crop filter to achieve zoom +/-, it reduces the output image size. am i doing something wrong here?

thanks

manjeettbz avatar Aug 07 '12 16:08 manjeettbz

That's what a crop does: it crops an image to a new, smaller size. If you want, you can override the output size using -forceProcessingAtSize to crop the image, yet have it report the original size.

BradLarson avatar Aug 07 '12 16:08 BradLarson

so after applying crop filter i can get highres 3264X2448 sized zoom images?

manjeettbz avatar Aug 07 '12 17:08 manjeettbz

Yes, simply force the crop to be processed at that size. It should work. If it doesn't, let me know and I'll fix the filter.

BradLarson avatar Aug 07 '12 17:08 BradLarson

i tried forcing it, its not working. i have filter group,(2filters, camera ->crop filter->saturation filter)

crop filter is set as "setInitialFilters". , i am still getting the cropped output as final image. not forced size.

thanks

manjeettbz avatar Aug 07 '12 18:08 manjeettbz

Ah, yes, it appears crop filters don't respect the forcing of something to a size. I'll need to fix that. In the meantime, you can use -forceProcessingAtSize: on the next filter in the chain and it will be resized at that stage.

BradLarson avatar Aug 07 '12 18:08 BradLarson

That's what I'm doing - using another filter to force the processing at a particular size. It's an extra step but it's a functional work-around.

iamcam avatar Aug 08 '12 00:08 iamcam

Is the fix for this coming soon? I would love to jump in and fix this myself, but I'm a total noob re OpenGL! :(

stevegraham avatar Dec 03 '12 07:12 stevegraham