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. 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. Then the next thing: You need to re-generate your application, in order to pick up the combined images. Finally, not all browser support combined images, so if you are using e.g. an older version of IE qooxdoo falls back to using the individual images. T. ------------------------------------------------------------------------------ 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
