Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extent for output file in af_imageWithAppliedCoreImageFilter:filterName:filterParameters: #78

Merged
merged 2 commits into from
Feb 4, 2016

Conversation

fsaint
Copy link

@fsaint fsaint commented Jan 28, 2016

The extent used to crop the output image was the original's image extent. This works in filters that don't change or change the extent minimally. For filters that change the extent significantly (for example "CIPerspectiveCorrection") the bug is quite evident.

I also updated the image of the test cases. In the original test image, the worn cropping caused the image to lave some sharp edges caused by a too small crop.

@cnoon
Copy link
Member

cnoon commented Feb 4, 2016

Thanks for putting this together @fsaint...much appreciated! This was definitely a bug that unfortunately we didn't notice. Looking at the image you modified makes it pretty obvious. Thank you for taking the time to put this together! 🍻

cnoon added a commit that referenced this pull request Feb 4, 2016
Extent for output file in af_imageWithAppliedCoreImageFilter:filterName:filterParameters:
@cnoon cnoon merged commit f99aecb into Alamofire:master Feb 4, 2016
@cnoon cnoon added this to the 2.4.0 milestone Feb 4, 2016
@cnoon cnoon self-assigned this Feb 4, 2016
@cnoon
Copy link
Member

cnoon commented Feb 4, 2016

Just FYI...I also pushed b860826 to fix up the test suite on various OS's. The blur filter produces quite different results on iOS 8.1 and 8.2 and iOS 8.3 and 8.4 and iOS 9.0+. Therefore, I had to generate different images on each OS and update the tests.

@cnoon cnoon modified the milestones: 2.3.1, 2.4.0 Feb 8, 2016
@fourlexifive
Copy link

Could this be added as a setting to the method?
It can be very useful to have the original crop on a blurred picture.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants