Hi all. I'm creating a web-based application that uses PHP, MySQL &
Apache on a Windows platform. What I need to do is create images on
the fly with either GD or ImageMagick, display them on the web browser
and then save the file.
The tricky part is the format of that saved file - it needs to be an
EPS format. The image won't be anything terribly exciting - just some
basic shapes (boxes, circles, etc) and some text. No fancy colors,
textures, or effects. It will be imported into a vector-based program
and processed there. That program can only import EPS files, other
than their own proprietary format.
Is this even possible without getting into hardcore programming? Does
ImageMagick or GD offer some kind of vector-based file format? Is
there something that I'm not seeing in the documentation? If this is
better accomplished using the libraries and programs in Linux, that is
certainly an option.
Any help would be greatly appreciated!
Thanks! 1 12840
"shanergb" <sh***@sthoen.c om> writes: The tricky part is the format of that saved file - it needs to be an EPS format. The image won't be anything terribly exciting - just some basic shapes (boxes, circles, etc) and some text. No fancy colors, textures, or effects. It will be imported into a vector-based program and processed there. That program can only import EPS files, other than their own proprietary format.
From what I know, you cannot generate EPS files in PHP. If EPS is
your requirement, I think you will have to use Imagemagick. Again
from what I know about Imagemagick, you cannot use it to output
circles, boxes etc. It is mostly used to work with images rather than
figures. You have these options
- Use PHP to generate you figure (there are functions to draw
lines/circles/rectangles), save the figure as TIFF and then use
imagemagick to convert from TIFF to eps (using imagemagick's' convert
utility)
- Use pdflib to generate the pdf with your desired figure and then use
pdf2eps utility to get your eps file
- Use PHP to generate a LaTeX file, this LaTeX file will have the
defination of what figure you want to draw and run this LaTeX file
through latex2eps to get the desired eps file.
- There is a epslib class in PHP (just search for it), but it has been
written by a $RANDOM_GUY. You can use that library to generate your
eps, AFTER you have gone through his code and satisfied yourself
that it is of good quality Is this even possible without getting into hardcore programming? Does ImageMagick or GD offer some kind of vector-based file format? Is there something that I'm not seeing in the documentation? If this is better accomplished using the libraries and programs in Linux, that is certainly an option.
Imagemagick has support for SVG. However, its support is still not
complete. You will get more info about that on IM's user mailing
list. Check imagemagick.org for supported formats that you can use.
--
Raj Shekhar Y! : Operations Engineer
MySQL DBA, programmer and slacker Y!IM : lunatech3007
home : http://rajshekhar.net blog : http://rajshekhar.net/blog/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Randell D. |
last post by:
Folks,
I've not used ImageMagick before - I've worked with the gd functions that
are pre-compiled in PHP and found some of the limits problematic yet heard
better reviews on ImageMagick.
I've got PHP 4.3.3 - When I do a phpinfo(); it tells me it was compiled
with --with-imagemagick There is no other mention of it anywhere (unlike GD
which is listed further down in its own box).
Can someone give me a quick one or two liner script that...
|
by: nawfer |
last post by:
for to resize and copy original photos into a new directory and to use
for a thumbnail gallery on the web;
what is better: GD, Netpbm or imagemagick and why?
very thank
|
by: Chuck Anderson |
last post by:
I am trying to use ImageMagick from a Php script running under Windows XP.
I have installed the latest version of ImageMagick - 6.2.1-7 and even
tried backing up to version 5.5.7 (based on a recommendation I found
during a Google search), but I can not get ImageMagick to work in Php
(using exec or system).
ImageMagick works from a Windows Command prompt -
e.g., convert C:\apache\htdocs\testing\temp_.jpg
|
by: Jim Red |
last post by:
Hello
I've just installed the OLE Object from Imagemagick.
It works. But now, I want to get some informations about an image trough
the identify command.
I've tried
SET oImg = Server.CreateObject("ImageMagickObject.MagickImage.1")
vReturn = oImg.Identify("c:\temp\logo.jpg")
|
by: Pekka Karjalainen |
last post by:
How can I create image files and animations with Python?
I will clarify a bit. This is a question of recreational programming. I
have already made some animated gifs from Julia sets using Python and some
external programs. I hit upon a quick solution of writing ppm image files
(it's a simple text based format) and using ppmtogif to make gifs out of
them, then using gifsicle (free program found on the web) to join them
into animated gif...
| |
by: eholz1 |
last post by:
Hello Users,
I am not sure if this is the place to post an imagemagick question -
please advise.
I have imagemagick 6.3 installed, runs from command line ok, etc.
I have tried (several times now) to install the "MagicWand" PHP api
from the imagemagik site.
This flatly refused to "make" configure seems ok, I follow the
|
by: azrael |
last post by:
Hy
did anyone manage to work with imahemagick through python. I've been
googling like a crazy for some instalation instructions, but i cant
find anything. please help.
thnx
|
by: empiresolutions |
last post by:
I am working with a TIF to JPG conversion that will result in the JPG being printed from a web page. My issue is the final JPG image prints VERY blurry.
The TIF file that has the following settings,
*plat.tif*
Pixel Dimensions - 9600x7200
Document Size - 24x18 inches
Resolution - 400 px/in
File Size - 236 KB
|
by: Larry Hale |
last post by:
Thank you, again, Michael, for all your help many months ago.
I *FINALLY* got a HowTo done up; please see http://wiki.python.org/moin/HowTo/FileMagic
I've also emailed Mr. Hupp to see if he'll re-post the SWIG version;
he's working on a newer binding (forget... ctypes??) and once that
one's working... :)
But for now...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |