Comments (6)
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.
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.
Added notice of license (MIT license)
from ios-imagefile-megapixel.
ありがとうございました!^_^
from ios-imagefile-megapixel.
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.
@batmanr can you please attach the image and code you faced the problem ?
from ios-imagefile-megapixel.
Related Issues (20)
- PNGs that have an alpha layer show up as a black box
- Rendered object size not available HOT 1
- Breaks using png file HOT 2
- Canvas Quality HOT 2
- Blob not defined in IE9 strict mode HOT 1
- Poor quality of resize (in all browsers I've seen) HOT 5
- doesn't work in my iPad simulator iOS 5.1 on mac HOT 1
- how can i find out when rendering of big pictures is finished HOT 1
- iOS7 front camera HOT 2
- Downscaling still fails for some images on iOS6 and iOS7 HOT 5
- Change source code for better reading/understanding HOT 1
- Orientation issue HOT 1
- Maintainer needed HOT 2
- resize from base64 HOT 2
- After re sizing an image in samsung s3 gives more size than actual HOT 2
- can not get the full image after compress the image that user toke
- blank canvas on iOS 8.. HOT 5
- I explode by this plugin :((((
- detectVerticalSquash bug for transparent PNG HOT 2
- [Enhancement] add Offset and Crop coordinates
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ios-imagefile-megapixel.