Am 22.04.2013 10:36, schrieb thron7:
> 
> On 04/22/2013 10:05 AM, Cajus Pollmeier wrote:
>> Hi,
>>
>> I've some problems understanding what's needed to get qx load it's
>> images from a combined one. After reading
>>
>> http://manual.qooxdoo.org/2.2/pages/development/image_clipping_and_combining.html
>>
>> I've added an image.json file defining the images to be combined,
>> included it from config.json in order to run it from one place and ran
>>
>> generate.py image-combine
>>
>> That creates two files images44.png and images44.meta containing 44x44
>> sized icons and their description, happily placed in the. The
>> application itself is unmodified, because I didn't find anything more
>> noted in the document above.
> 
> For one thing, you don't have to change anything in your source code. 
> Using combined images or not is transparent for the application code. 
> Specifically, this also means that your application code needs to 
> continue to #asset the individual images, as without combined images.

Does "#asset the individual images" mean that *every* images needs an
own asset? Currently I'm using a wildcard for that. Now: tried with and
without.

> The other thing is where "happily placed in the" is. Combined images, 
> together with their .meta files, should be placed somewhere under the 
> source/resource/<namespace> path in your application. It is there where 
> they are found by the Generator when scanning resources.

Sure. I've placed the two files inside of the resource root of my
applications namespace.

> Then the next thing: You need to re-generate your application, in order 
> to pick up the combined images.

Did that using "distclean" and "source" / "build". The combined image
does not show up in "build" - and according to the network console in
Chrome, it is not accessed when loading "source". The individual images
are still accessed (in Chrome).

Is there a point somewhere in the generator where I can debug why it
thinks the images are taken? -vvv doesn't mention images or
investigating meta files.

Cajus


------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to