You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Doss Markus <Ma...@rhein-zeitung.net> on 2002/07/03 08:17:44 UTC

Embedded pictures in 2DGraphics

Hi,
 
I'm using the Java2D Graphic Context with textlayouts and pictures. Creating
SVG or PDF from this context works fine. Is it possible to create the SVG or
PDF only with a preview of the embedded pictures, so that the size of files
will be reduced (e.g. for a transport to a server) and in a later rendering
step resolve this preview reference to the real picture (like an OPI
processes using embedded postscript statements) ?
 
Thanks in advance
 
Markus

Re: Embedded pictures in 2DGraphics

Posted by Thomas E Deweese <th...@kodak.com>.
>>>>> "KL" == Keiron Liddle <ke...@aftexsw.com> writes:

KL> Hi, Nothing like this is implemented.  I'm not that familiar with
KL> OPI but from a quick read it appears that it puts in a low
KL> resolution image into the postscript doc, then later on it
KL> replaces it with a high resolution image.  This might be possible
KL> with some sort of pdf editing tool as the image is put into a
KL> separate pdf object, you would need to know what the object number
KL> is though.

KL> Keiron.

KL> On Wed, 2002-07-03 at 08:17, Doss Markus wrote:

>> I'm using the Java2D Graphic Context with textlayouts and
>> pictures. Creating SVG or PDF from this context works fine. Is it
>> possible to create the SVG or PDF only with a preview of the
>> embedded pictures, so that the size of files will be reduced
>> (e.g. for a transport to a server) and in a later rendering step
>> resolve this preview reference to the real picture (like an OPI
>> processes using embedded postscript statements) ?

   Well I have no idea what OPI or embedded postscript statements are.
But for Batik we have a funky extension called 'multiImage'.  This
allows you to refer to multiple raster images for one image tag.  It
will use the image that is most appropriately sized for display.  So
you could stick in a multiImage elemet with a preview image using a
"data:" URL and then reference the high res version using a regular
"http:" URL.

   It isn't clear from your question how the 'high res' version gets
to the server for rendering, so I don't know if the above is a
reasonable match for what you want to do.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Re: Embedded pictures in 2DGraphics

Posted by Keiron Liddle <ke...@aftexsw.com>.
Hi,

Nothing like this is implemented.
I'm not that familiar with OPI but from a quick read it appears that it
puts in a low resolution image into the postscript doc, then later on it
replaces it with a high resolution image.
This might be possible with some sort of pdf editing tool as the image
is put into a separate pdf object, you would need to know what the
object number is though.

Keiron.

On Wed, 2002-07-03 at 08:17, Doss Markus wrote:
> Hi,
>  
> I'm using the Java2D Graphic Context with textlayouts and pictures. Creating
> SVG or PDF from this context works fine. Is it possible to create the SVG or
> PDF only with a preview of the embedded pictures, so that the size of files
> will be reduced (e.g. for a transport to a server) and in a later rendering
> step resolve this preview reference to the real picture (like an OPI
> processes using embedded postscript statements) ?
>  
> Thanks in advance
>  
> Markus



---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org