What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Image Scripting Help

Image Scripting Help
Author: Message:
Baggins
Full Member
***

Avatar
B000ALFAZO

Posts: 387
Reputation: 13
30 / Male / Flag
Joined: Oct 2006
O.P. Image Scripting Help
I have some codabar barcodes, saved as png files.
The filename is the number in the code.
[Image: attachment.php?pid=899177]
I want to put them together in an image using a script, to be printed out. The number (filename) must be centered under the code in about size 13 Arial. This image must be the right size to print on 8.5x11 paper.

I thought about using PHP or The GIMP. But PHP isn't very good when it comes to placement of TTF and I know almost nothing about Python or GIMP scripting.

Any suggestions of what to use? So long as I can make a page in < 30sec it would be fine, doesn't need to be a script.

.jpg File Attachment: library.JPG (80.79 KB)
This file has been downloaded 238 time(s).

This post was edited on 03-30-2008 at 09:39 PM by Baggins.
03-30-2008 09:32 PM
Profile E-Mail PM Web Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: Image Scripting Help
You can use an image box of the text first to get the dimensions and then be able to centre that.  www.php.net/imagettfbox

i think you only need the 4th element of the array to get the width as well.  The you can compare it to the width of the background and divide the difference by 2, this will give the x offset tha you need for the text's placement.
[Image: markee.png]
03-30-2008 11:02 PM
Profile PM Find Quote Report
Baggins
Full Member
***

Avatar
B000ALFAZO

Posts: 387
Reputation: 13
30 / Male / Flag
Joined: Oct 2006
O.P. RE: Image Scripting Help
Thanks for the tip, I never could figure out what the GD developers were smoking when they added TTF support. I found a nice looking class, so it shound be easier.

New plan: Use php to generate .html files, use OpenOffice.org to convert it to a PDF.

This post was edited on 03-31-2008 at 12:15 AM by Baggins.
03-30-2008 11:55 PM
Profile E-Mail PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Image Scripting Help
I would simply use PaintShopPro, open all the pngs and print them using the multi image option. Most likely PhotoShop has something similar. Using a script or whatever programming language seems a bit over the top... especially if it is only about 10 files ;)

This post was edited on 03-31-2008 at 12:10 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-31-2008 12:09 AM
Profile PM Find Quote Report
Baggins
Full Member
***

Avatar
B000ALFAZO

Posts: 387
Reputation: 13
30 / Male / Flag
Joined: Oct 2006
O.P. RE: Image Scripting Help
It's not just 10 files, I plan to do at least 1000 :P

Also, having the number underneath is important.

This post was edited on 03-31-2008 at 12:16 AM by Baggins.
03-31-2008 12:15 AM
Profile E-Mail PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Image Scripting Help
quote:
Originally posted by Bilbo
It's not just 10 files, I plan to do at least 1000 :P
ah, lol, that's another case then (but still, PSP could do it)....
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-31-2008 12:16 AM
Profile PM Find Quote Report
Jarrod
Veteran Member
*****

Avatar
woot simpson

Posts: 1304
Reputation: 20
– / Male / Flag
Joined: Sep 2006
RE: Image Scripting Help
quote:
Originally posted by CookieRevised
I would simply use PaintShopPro, open all the pngs and print them using the multi image option. Most likely PhotoShop has something similar. Using a script or whatever programming language seems a bit over the top... especially if it is only about 10 files ;)

if your doing 1000 it's probally obsolete but adobe does this, Via bridge, by going tools>photoshop>contact sheet II...


[Image: 5344.png]
[Image: sig.png]

A.k.a. The Glad Falconer














03-31-2008 06:16 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On