|
From: Harald H. <h.h...@tu...> - 2005-11-12 23:30:59
|
On Sat, 12 Nov 2005, Ethan A Merritt wrote: > On Saturday 12 November 2005 02:54 pm, Daniel J Sebald wrote: > > Harald Harders wrote: > > > On Fri, 11 Nov 2005, Daniel J Sebald wrote: > > >>>Really? You have code that reads in a jpeg file? > > >> > > > > First, let me preface this to say that we shouldn't embark on adding > > support for a lot of images too soon without discussion. We don't want > > to get a bloated plotting program. > > 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 file format looks like. For example, the file starts with two 8-bit unsigned ints containing the resolution in x and y direction, every pixel contains of three 8-bit chars for rgb, ... But this should be done by somebody who knows the image code. Best regards Harald -- Harald Harders h.h...@tu... http://www.harald-harders.de |