Hi,
I "asset" all images in my debug source (qx/*) and the image is displayed
without any issues.
By adding one extra line to my code the warning is gone:
var s =
qx.util.AliasManager.getInstance().resolve("decoration/table/boolean-true.png");
this.__trueIconUrl = qx.util.ResourceManager.getInstance().toUri(s);
-> qx.io.ImageLoader.load(this.__trueIconUrl, function (source, entry) {
}, this);
For all my own pngs I don't need to do anything special, just for these
core-Qooxdoo images.
Debugging from VS 2012 I use the built in debug WebServer.
Best regards,
Jeroen
From: thron7 [mailto:thomas.herchenroe...@1und1.de]
Sent: donderdag 7 november 2013 13:50
To: qooxdoo Development
Subject: Re: [qooxdoo-devel] ImageLoader: Not recognized format of external
image...
On 11/07/2013 01:10 PM, Jeroen Smit wrote:
Hi,
I implemented a cell rendered to be able to show a checkbox for a boolean
column.
In code I use default Qx images and cache the uri's using:
var s =
qx.util.AliasManager.getInstance().resolve("decoration/table/boolean-true.png");
this.__trueIconUrl = qx.util.ResourceManager.getInstance().toUri(s);
s =
qx.util.AliasManager.getInstance().resolve("decoration/table/boolean-false.png");
this.__falseIconUrl = qx.util.ResourceManager.getInstance().toUri(s);
In debug mode (using F7) I see a lot of warnings stating:
ImageLoader: Not recognized format of external image
"qooxdoo-3.0.1-sdk/framework/source/resource/qx/decoration/Modern/table/boolean-true.png"
What am I doing wrong here?
For one thing, all resources must be covered by appropriate @asset hints so
they get registered with the qooxdoo runtime. In the file containing the above
code, you could add in the file-level JSDoc comment something like
* @asset(qx/decoration/Modern/table/boolean-true.png)
This will get you rid of the "external image" or "unmanaged resource" warnings.
As for the unrecognized format, how do you serve your app? Through a web
server? Which mime-type does it report with the image file?
T.
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel