Hello,

I tried today to dig into Qooxdoo fantastic feature for image
combining. We have hundreds of images for our GUI and combining all
that would greatly improve our loading times. Mostly the feature works
but there are two points blocking us right now:

1) (this one is probably easy to fix). The parameters used by
ImageMagick to combine are not optimal. I had 4 images of 4.5K each. I
combined them and instead of a reduction in total size, I got a
filesize of 25K for the combined image. I opened it up in Gimp,
resaved it and it instantly got down to 15K (without any difference in
the image itself since PNG is lossless). I noticed that the color
depth used by ImageMagick was 64 (instead of 32); the PNG compression
set may be wrong to.

So how can I give myself the parameters to ImageMagick? If it's not
possible to supply those yourself, it should then be fixed so that
such a behavior does not take place.

2) (this one is much more critical). Currently it is impossible to
combine images that are part of a Grid decorator (which covers a lot
of our use cases). As you know, it is impossible to clip and scale in
CSS 2.1 / HTML (it may be possible in CSS 3, I have not checked). The
top, left, right, bottom and center images of a Grid decorator must be
scaled though, which makes it impossible to use a combined image for
those areas. I would have expected Qooxdoo to use the combined image
for the corner positions and revert to original images for the 5
others. However it's not happening; Qooxdoo only does that for the
center position. As a result, the other areas suffer from artefacts.

How can this be fixed? Eg, where in the code Qooxdoo knows that for
the center (-c) position it should not take the combined image? If I
locate this, it would be pretty easy to also specify that original
images should be used for the left, top, right and bottom positions.

Thanks for the help,

Jean-Noel

PS: note that in certain cases (when you don't need to scale in
certain directions), it would be possible to use the combined image
for the top position, for instance. If the top position image needs
only to be scaled horizontally, for instance, and the combined image
has been combined vertically (and all the images have the same width),
it works. But in the general case it is impossible.

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to