Ash www.ashleysheridan.co.uk |
--- Begin Message ---
- To: <ash@xxxxxxxxxxxxxxxxxxxx>, Jochem Maas <jochem@xxxxxxxxxxxxx>
- Subject: Re: Re: Image Generation
- From: php@xxxxxxxxxxxxxxxxxxxxx
- Date: Wed, 20 Aug 2008 12:44:01 +0100
- Cc: PHP General list <php-general@xxxxxxxxxxxxx>
- Delivery-date: Wed, 20 Aug 2008 13:43:03 +0100
- Envelope-to: ash@xxxxxxxxxxxxxxxxxxxx
- Reply-to: php@xxxxxxxxxxxxxxxxxxxxx
BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; } Just to clarify some points, there is no need for this to be of print quality - it is an online representation of the vinyl they will recieve in the post. Also, the main problem I've got with GD, is generating text that is stretched? Do I need to generate a text image then stretch this using normal resize functions?? Alex On Wed , Jochem Maas jochem@xxxxxxxxxxxxx sent: Ashley Sheridan schreef: > Hence me saying "in the way you are asking" I know GD can scale images > (I've done that myself on more than one occassion), but not images that > are intended for print as opposed to screen viewing, as this appears to be. I can't see how imagemagick helps here, it's a bitmap manipulator just like GD. so it's either use something that generates vector based output (and let the printersubsytem handle the conversion) or generate massive bitmaps and print them at a very high DPI. > > As for quality, I've found that GD offers comparable quality images to > ImageMagik, and in better time more often than not. The main advantage > ImageMagik has is with functionality; quite simply, it can do much more > than GD and GD2. I'll take your word on that, I've never played with imagemagick, having found GD to produce quality good enough for my needs. > > Ash > www.ashleysheridan.co.uk [1] > > > ------------------------------------------------------------------------ > > Onderwerp: > Re: Image Generation > Van: > Jochem Maas > Datum: > Wed, 20 Aug 2008 11:06:14 +0200 > Aan: > ash@xxxxxxxxxxxxxxxxxxxx [3] > > Aan: > ash@xxxxxxxxxxxxxxxxxxxx [4] > CC: > Alex Chamberlain , PHP General list > > > Return-path: > ashleysheridan.co.uk@xxxxxxxxxxxxx> > Envelope-to: > ash@xxxxxxxxxxxxxxxxxxxx [7] > Delivery-date: > Wed, 20 Aug 2008 10:06:54 +0100 > Received: > from [216.92.131.4] (port=19732 helo=lists.php.net) by > zencphosting11.zen.co.uk with esmtp (Exim 4.68) (envelope-from > ashleysheridan.co.uk@xxxxxxxxxxxxx>) id > 1KVjeX-0001J1-OZ for ash@xxxxxxxxxxxxxxxxxxxx [8]; Wed, 20 Aug 2008 10:06:54 > +0100 > X-Host-Fingerprint: > 216.92.131.4 lists.php.net > Received: > from [216.92.131.4] ([216.92.131.4:19612] helo=lists.php.net) by > pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id > 54/0E-51571-CAEDBA84 for ; Wed, 20 Aug 2008 > 05:06:52 -0400 > Received: > (qmail 38571 invoked by uid 1010); 20 Aug 2008 09:06:34 -0000 > Mailing-List: > contact php-general-help@xxxxxxxxxxxxx [10]; run by ezmlm > Precedence: > bulk > list-help: > > list-unsubscribe: > > list-post: > > Delivered-To: > mailing list php-general@xxxxxxxxxxxxx [14] > Received: > (qmail 38564 invoked from network); 20 Aug 2008 09:06:34 -0000 > Authentication-Results: > pb1.pair.com header.from=jochem@xxxxxxxxxxxxx [15]; sender-id=unknown > Authentication-Results: > pb1.pair.com smtp.mail=jochem@xxxxxxxxxxxxx [16]; spf=permerror; > sender-id=unknown > Received-SPF: > error (pb1.pair.com: domain iamjochem.com from 194.109.193.121 cause and > error) > X-PHP-List-Original-Sender: > jochem@xxxxxxxxxxxxx [17] > X-Host-Fingerprint: > 194.109.193.121 mx1.moulin.nl Linux 2.6 > X-Virus-Scanned: > amavisd-new at moulin.nl > Bericht-ID: > > User-agent: > Thunderbird 2.0.0.16 (Macintosh/20080707) > MIME-versie: > 1.0 > Referenties: > > > In-Reply-To: > > X-Enigmail-Version: > 0.95.6 > Content-Type: > text/plain; charset=UTF-8; format=flowed > Content-Transfer-Encoding: > base64 > > > Ashley Sheridan schreef: >> I don't think GD has a built-in function to scale an image the way you >> are asking, > > of course you can scale images with GD, but everything works in pixels, > ImageMagick is no different ... there is no such thing as millimeters > when it > comes to bitmap images, you can specify an output resolution when > printing but > that has no direct bearing on the image file itself. > > Alex will have to figure out the bounding box ratios of the dimensions > given in > mm and transpose that into the 300x150 pixel image he's going to use as > a canvas, > the math is not that hard (can't be if I can manage it!) and although it > won't > be a perfect at all times he did mention it's a representation. > > If Alex requires pixel perfect representation of print output in a file > then he > is going to have to resort to some kind of vector based image > representation > (e.g. Adobe Illustrator) but scripting that with php is possibly going > to be very > tricky, either using a COM object or shelling out to something like > AppleScript > (which I know you can use to do some really crazy Illustrator scripting > with) > >> and to do it on a pixel by pixel basis from within a function is going >> to be a very time consuming and memory costly process. Have you >> thought about using ImageMagik to do this? I know that you can exec() >> out to this from within Windows and Linux, and ImageMagik is free to >> use (as far as I'm aware) so it could be just what you need. >> >> Ash >> www.ashleysheridan.co.uk [21] >> >> >> ------------------------------------------------------------------------ >> >> Onderwerp: >> Image Generation >> Van: >> "Alex Chamberlain" >> Datum: >> Wed, 20 Aug 2008 08:29:50 +0100 >> Aan: >> "PHP General list" >> >> Aan: >> "PHP General list" >> >> Return-path: >> ashleysheridan.co.uk@xxxxxxxxxxxxx> >> Envelope-to: >> ash@xxxxxxxxxxxxxxxxxxxx [25] >> Delivery-date: >> Wed, 20 Aug 2008 08:30:52 +0100 >> Received: >> from [216.92.131.4] (port=26599 helo=lists.php.net) by >> zencphosting11.zen.co.uk with esmtp (Exim 4.68) (envelope-from >> ashleysheridan.co.uk@xxxxxxxxxxxxx>) id >> 1KVi9b-0007aA-Qe for ash@xxxxxxxxxxxxxxxxxxxx [26]; Wed, 20 Aug 2008 >> 08:30:51 +0100 >> X-Host-Fingerprint: >> 216.92.131.4 lists.php.net >> Received: >> from [216.92.131.4] ([216.92.131.4:26502] helo=lists.php.net) by >> pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id >> B7/47-51571-A28CBA84 for ; Wed, 20 Aug 2008 >> 03:30:50 -0400 >> Received: >> (qmail 5047 invoked by uid 1010); 20 Aug 2008 07:30:37 -0000 >> Mailing-List: >> contact php-general-help@xxxxxxxxxxxxx [28]; run by ezmlm >> Precedence: >> bulk >> list-help: >> >> list-unsubscribe: >> >> list-post: >> >> Delivered-To: >> mailing list php-general@xxxxxxxxxxxxx [32] >> Received: >> (qmail 5040 invoked from network); 20 Aug 2008 07:30:37 -0000 >> Authentication-Results: >> pb1.pair.com smtp.mail=php@xxxxxxxxxxxxxxxxxxxxx [33]; spf=permerror; >> sender-id=unknown >> Authentication-Results: >> pb1.pair.com header.from=php@xxxxxxxxxxxxxxxxxxxxx [34]; sender-id=unknown >> Received-SPF: >> error (pb1.pair.com: domain alexchamberlain.co.uk from 79.170.40.18 >> cause and error) >> X-PHP-List-Original-Sender: >> php@xxxxxxxxxxxxxxxxxxxxx [35] >> X-Host-Fingerprint: >> 79.170.40.18 mail18.extendcp.co.uk Linux 2.5 (sometimes 2.4) (4) >> Bericht-ID: >> >> MIME-versie: >> 1.0 >> Content-Type: >> text/plain; charset="windows-1250" >> X-Mailer: >> Microsoft Office Outlook 12.0 >> Thread-Index: >> AckCloefPR8PGF4zQNGV6eViXsKrxQ== >> Content-Language: >> en-gb >> Content-Transfer-Encoding: >> base64 >> >> >> Hi, >> >> I need to generate an online proof for vinyl lettering. Customers specify >> the text, font, colour, maximum frame size (mm) (ie the width and >> height it >> must fit into), and whether or not they want to keep aspect ratio (ie not >> distort the lettering). >> >> I want to represent all this on a single image. So it would display a >> border >> with their width and height on, and inside this would be the text in the >> appropriate colour and font – if they decide to keep aspect ratio the >> text >> would not be distorted. If they do not, it would be. The image would >> always >> be 300px wide by 150px high (these would need to be constants that I >> could >> change from time to time). >> >> I’ve got a very basic proof working using a GD wrapper, but I don’t >> think GD >> is powerful enough to do it all, nor do I recon my programming skills >> are up >> for it. Has anybody got any advice on how to tackle this, even if it >> is just >> bits of the problem?? >> >> Thanks, >> >> Alex Chamberlain >> >> >> >> No virus found in this outgoing message. Scanned by AVG Free 8.0 >> Checked by AVG - http://www.avg.com [36] Version: 8.0.138 / Virus Database: >> 270.6.6/1621 - Release Date: 19/08/2008 >> 18:53 >> >> >> > > -- PHP General Mailing List (http://www.php.net/ [37]) To unsubscribe, visit: http://www.php.net/unsub.php [38] Links: ------ [1] http://webmail.cp.alexchamberlain.co.uk/webmail-n/parse.php?redirect=http://www.ashleysheridan.co.uk [2] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'jochem@xxxxxxxxxxxxx\',\'\',\'\',\'\') [3] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'ash@xxxxxxxxxxxxxxxxxxxx\',\'\',\'\',\'\') [4] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'ash@xxxxxxxxxxxxxxxxxxxx\',\'\',\'\',\'\') [5] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'php@xxxxxxxxxxxxxxxxxxxxx\',\'\',\'\',\'\') [6] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'php-general@xxxxxxxxxxxxx\',\'\',\'\',\'\') [7] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'ash@xxxxxxxxxxxxxxxxxxxx\',\'\',\'\',\'\') [8] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'ash@xxxxxxxxxxxxxxxxxxxx\',\'\',\'\',\'\') [9] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'ash@xxxxxxxxxxxxxxxxxxxx\',\'\',\'\',\'\') [10] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'php-general-help@xxxxxxxxxxxxx\',\'\',\'\',\'\') [11] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'php-general-help@xxxxxxxxxxxxx\',\'\',\'\',\'\') [12] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'php-general-unsubscribe@xxxxxxxxxxxxx\',\'\',\'\',\'\') [13] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'php-general@xxxxxxxxxxxxx\',\'\',\'\',\'\') [14] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'php-general@xxxxxxxxxxxxx\',\'\',\'\',\'\') [15] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'jochem@xxxxxxxxxxxxx\',\'\',\'\',\'\') [16] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'jochem@xxxxxxxxxxxxx\',\'\',\'\',\'\') [17] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'jochem@xxxxxxxxxxxxx\',\'\',\'\',\'\') [18] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'48ABDE86.4090703@xxxxxxxxxxxxx\',\'\',\'\',\'\') [19] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'1219219496.3609.8.camel@xxxxxxxxxxxxxxxxxxxxx\',\'\',\'\',\'\') [20] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'1219219496.3609.8.camel@xxxxxxxxxxxxxxxxxxxxx\',\'\',\'\',\'\') [21] http://webmail.cp.alexchamberlain.co.uk/webmail-n/parse.php?redirect=http://www.ashleysheridan.co.uk [22] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'php@xxxxxxxxxxxxxxxxxxxxx\',\'\',\'\',\'\') [23] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'php-general@xxxxxxxxxxxxx\',\'\',\'\',\'\') [24] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'php-general@xxxxxxxxxxxxx\',\'\',\'\',\'\') [25] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'ash@xxxxxxxxxxxxxxxxxxxx\',\'\',\'\',\'\') [26] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'ash@xxxxxxxxxxxxxxxxxxxx\',\'\',\'\',\'\') [27] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'ash@xxxxxxxxxxxxxxxxxxxx\',\'\',\'\',\'\') [28] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'php-general-help@xxxxxxxxxxxxx\',\'\',\'\',\'\') [29] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'php-general-help@xxxxxxxxxxxxx\',\'\',\'\',\'\') [30] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'php-general-unsubscribe@xxxxxxxxxxxxx\',\'\',\'\',\'\') [31] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'php-general@xxxxxxxxxxxxx\',\'\',\'\',\'\') [32] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'php-general@xxxxxxxxxxxxx\',\'\',\'\',\'\') [33] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'php@xxxxxxxxxxxxxxxxxxxxx\',\'\',\'\',\'\') [34] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'php@xxxxxxxxxxxxxxxxxxxxx\',\'\',\'\',\'\') [35] http://webmail.cp.alexchamberlain.co.uk/javascript:top.opencompose(\'php@xxxxxxxxxxxxxxxxxxxxx\',\'\',\'\',\'\') [36] http://webmail.cp.alexchamberlain.co.uk/webmail-n/parse.php?redirect=http%3A%2F%2Fwww.avg.com [37] http://webmail.cp.alexchamberlain.co.uk/parse.php?redirect=http%3A%2F%2Fwww.php.net%2F [38] http://webmail.cp.alexchamberlain.co.uk/parse.php?redirect=http%3A%2F%2Fwww.php.net%2Funsub.php
--- End Message ---
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php