Giter VIP home page Giter VIP logo

Comments (6)

hfossli avatar hfossli commented on June 10, 2024

Have you seen this pull request? gavrix@4bd09ed

Also, we know that the resampling could be improved (#23). Currently we are using nearest neighbor which results in a bit more pixelated images than necessary.

from aggeometrykit.

Maxtws avatar Maxtws commented on June 10, 2024

Nope. But I've made almost the same changes in the code. It's good for development purposes, however due to company policy I just can not use pods with my modifications. Any chance to see an updated version with that fix any time soon?
As for resampling it is not an issue for me but it's good to know you're working on it!
P.S.: btw, AGGeometryKit is awesome!

from aggeometrykit.

hfossli avatar hfossli commented on June 10, 2024

^ ^, That's a good company policy. I support that! You don't want changes like that discarded on each pod install.

That pull request is live on master and published as version 1.2.3. A pod update should normally be enough.

We're sadly not working on improving the resampling. I don't have time for that, but I hope others would like to contribute on that part. It will be very interesting, fun and educational.

from aggeometrykit.

Maxtws avatar Maxtws commented on June 10, 2024

Ahhh, man. I just needed to update the pod. I was using 1.2.2. Sorry for wasting your time!
Thanks!

I've just noticed an issue with UIImage scale and "imageWithPerspectiveCorrectionFromQuad". If I pass an image with scale factor 3.0f (iPhone6 Plus) it crops only portion of an image. As far as I traced the rects it appears to act weird here:

(Line 164:) UIImage *correctedImage = [self imageWithTransform:transform anchorPoint:CGPointZero];
(Line 165:) UIImage *resultImage = [correctedImage imageByCroppingToRect:destinationRect];

Here, imageWithTransform returns an image with scale 1.0f (so its size in points = size in pixels) and destinationRect is still in points. So the result image is 1/3 upper part of the source image.

Is this something you're aware of and I'm wasting your time again?

from aggeometrykit.

hfossli avatar hfossli commented on June 10, 2024

No problem! :) 1.2.3 was released very recently – good timing.

I'm not aware of this. A pull request on the scale issues would be highly appreciated.

from aggeometrykit.

hfossli avatar hfossli commented on June 10, 2024

And also perfect if you can open a separate issue for that.

from aggeometrykit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.