GithubHelp home page GithubHelp logo

Comments (6)

stomita avatar stomita commented on June 12, 2024

Hmm, that is the point I realize. Because this is created as a workaround for photo uploading application, which mainly becomes JPG file. Currently I don't have any good idea to fix the scale before knowing that it has alpha channel.

from ios-imagefile-megapixel.

blueimp avatar blueimp commented on June 12, 2024

OK, understandable.

One solution which works in your case (photo uploading application) and other cases where the image to display is loaded from a File object is to check if the File is of type "image/jpeg" and only then apply the subsampling and image squashing fixes.

By the way, under which license do you release your library? MIT? Public domain?

from ios-imagefile-megapixel.

stomita avatar stomita commented on June 12, 2024

Added notice of license (MIT license)

from ios-imagefile-megapixel.

blueimp avatar blueimp commented on June 12, 2024

ありがとうございました!^_^

from ios-imagefile-megapixel.

vasurawal avatar vasurawal commented on June 12, 2024

hi stomita,
The problem i am facing is that whenever i am trying to draw an image on canvas,the image is getting zoomed in by itself and then getting drawn onto canvas(i.e. the image is getting drawn 2-3 times bigger ).I am facing this issue only in ios 6.In ios 5 the image is getting drawn appropriately.Any suggestions to resolve the issue?
Thanks in advance.

from ios-imagefile-megapixel.

stomita avatar stomita commented on June 12, 2024

@batmanr can you please attach the image and code you faced the problem ?

from ios-imagefile-megapixel.

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.