Comments (3)
Additional info:
Script Error {
[ERROR] : column = 43;
[ERROR] : line = 54;
[ERROR] : message = "Invalid type passed to function";
[ERROR] : nativeLocation = "+TiImagefactoryModule imageTransform:withArgs:";
[ERROR] : nativeReason = "expected: TiBlob, was: String";
[ERROR] : sourceURL = "file:///Users/nicolaivilladsen/Library/Developer/CoreSimulator/Devices/2CD455E2-0657-4686-87CB-24D4C1D1AD8A/data/Containers/Bundle/Application/53722BC0-E5B1-449A-98CF-7CCBDE3F9ACB/Opgavezonen.app/streaming_lib/streamingModule.js";
[ERROR] : stack = "[native code]\ncreateRadioStreaming
[ERROR] : }
from ti.imagefactory.
@necov,
This module works with local image only.
Try creating a httpRequest
var xhr = Ti.Network.createHTTPClient({
onload : function(e) {
var blob = xhr.responseData;
newBlob = ImageFactory.compress(blob, 0.25);
},
xhr.open('GET', ''http://www.youserver.com/yourimage.jpg);
xhr.send();
from ti.imagefactory.
@deckameron Exactly! Download the image first, the process it.
from ti.imagefactory.
Related Issues (17)
- iOS 64-bit distribution build? HOT 1
- 64 bit support? HOT 3
- Very unstable on Android HOT 3
- cant find module: ti.imagefactory for architecture x86_64 HOT 4
- Android: java.lang.NullPointerException HOT 1
- Crop image method is not working as expected. HOT 4
- Can't run on Android 6.0 HOT 14
- Dist for ios HOT 2
- Android: PX dimension support for Android HOT 2
- After compress the image clarity and quality missed? HOT 1
- SDK6.0? HOT 1
- Module not listed HOT 1
- Feature request: async resizing / compression
- iOS .imageAsResized() on image/jpeg generates a blob with mimeType image/png
- Android: (Rare) ANR when using ImageFactory.compress() HOT 6
- User Reports via Q&A that on ios, images blob is resized, but saved file is not HOT 2
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 ti.imagefactory.