Code Monkey home page Code Monkey logo

Comments (3)

necov avatar necov commented on June 13, 2024

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.

deckameron avatar deckameron commented on June 13, 2024

@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.

hansemannn avatar hansemannn commented on June 13, 2024

@deckameron Exactly! Download the image first, the process it.

from ti.imagefactory.

Related Issues (17)

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.