Re: Reading EPS files to a variable
- To: mathgroup at smc.vnet.net
- Subject: [mg15444] Re: [mg15428] Reading EPS files to a variable
- From: Andrzej Kozlowski <andrzej at tuins.ac.jp>
- Date: Mon, 18 Jan 1999 04:21:46 -0500
- Sender: owner-wri-mathgroup at wolfram.com
This sort of thing is generally platform dependent. On a Mac you can use the Open Special command (with File Reading method set to Extract Resources) to open an EPS file. You can then use the Convert To command in the cell menu to convert the picture into InputForm. You can then assign a variable name to this and manipulate it like a mathematica graphic. Unfortunately on the Mac there is a bug in the conversion, resulting in lots of spurious characters appearing in the converted graphic object, which make it unusable unless they are removed. One can remove them all using Search and Replace, after which everything works O.K. This used to work without any problems (and much faster) in version 2.2. In principle the same method should work on other platforms but I have no idea what happens in practice. On Wed, Jan 13, 1999, Marco PULLIA <marco.pullia at cern.ch> wrote: >It is possible to open an eps file from the file menu. This would open a >new notebook with the picture in a cell. Is it possible to assign that >to a variable, similar to when you issue P1=Plot[Sin[x],{x,0,Pi}] ? > >Thanks in advance > >Marco > Andrzej Kozlowski Toyama International University JAPAN http://sigma.tuins.ac.jp/ http://eri2.tuins.ac.jp/