|
From: Petr M. <mi...@ph...> - 2005-11-13 13:10:51
|
>> Indeed. In fact, we should not add any code at all to gnuplot >> if the conversion can be done externally. And it can, easily. >> Since ImageMagick can convert almost anything to a raw RGB stream, >> I'd think you can do it now with no extra code at all: >> >> plot "< convert pic.jpeg rgb:-" with image >> >> If you need to tweak the code to make that work, then please >> do so and post a patch. If it works already, just contribute >> some documentation. > > This of course is a good solution. What is necessary are two things: > > A good documentation how to use this, and for Windows users who will not > know a programme that outputs rgb data, a clear description how the input I don't agree this is a good solution. This form plot "< convert pic.jpeg rgb:-" PLENTY OF OPTIONS with image is really ugly and user unfriendly. I propose gnuplot reads png, gif and jpeg files directly using the GD library. This won't add any new code into gnuplot but it will make this feature portable to gnuplot for Windows, for OS/2, for Mac. The ImageMagick is usually installed on modern Linux systems, but I doubt for elsewhere. Look at zimg, which can also read directly these files thanks to the GD library (right, Johannes?): --- PM |