Matthias I have been able to fix some problems (like noticing when an
image is not generated) and experimented with trying out many of the
different writers for each format ....but not everything is working.
In particular the JPEG output is being exported in CMYK still - I am
trying to output what to me is a normal buffered image it sounds from
your email like there is more to it than that; but I am afraid you will
have to explain.
I have included a short list of working formats and committed the change
to 1.1.0 and 1.1.x. The user interface will be limited to these options.
Jody
Matthias Basler wrote
BTW: jpeg2000 works for me. PhotoImpact complains that it is an CMYK image, but
if it combines the channels the image looks fine. Why is uDig exporting CMY
images instead of RGB anyway ...
But looking at the source right now I see that you don't give any arguments to
ImageIO at all:
ImageIO.write(image, getFormatName(), destination);
This is likely the source of some problems. I guess in the future uDig will
need an image options dialog anyway, to set compression ratio and the like.
In my apps I use the JAI filestore operation to write the image like this:
JPEGEncodeParam params= new JPEGEncodeParam();
params.setQuality(quality);
params.setRestartInterval(64);
ParameterBlock pb = new ParameterBlock();
pb.addSource(img);
pb.add(fileName);
pb.add(format);
pb.add(params);
JAI.create("filestore", pb);
This works fine for me.
Thanks for the dedicated testing; I will do what I can but I would
rather see us focus on things like the translation problems (that have
value for us going forward) than issues with the legend map graphic or
even image export.
Not following here: Translation problems are cosmetical, they usually don't
prevent the user from working. The other problems will create confusion for end
users, which spoils the image people will get of uDig.
Anyway, happy bug killing.
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel