Len Lawrence <[EMAIL PROTECTED]> wrote:

>On Sun, 22 Feb 2004 23:03:10 -0500
>Lee Wiggers <[EMAIL PROTECTED]> wrote:
>
>> On Sun, 22 Feb 2004 17:17:52 -0800
>> Aron Smith <[EMAIL PROTECTED]> wrote:
>> 
>> > On Sunday 22 February 2004 11:48 am, Lee Wiggers wrote:
>> > > Happy Sunday
>> > >
>> > > Anyone know an easy (?) way to convert a batch of .bmp's to
>> > > .jpg's?
>> > >
>> > > I have to do the same 20 pages of schematics every weekend for
>> > > the next forever.
>> > >
>> > > Resolution isn't much of an issue but the bmps are 300 dpi.
>> > Gimp
>> > >
>> > > Lee
>> > 
>> > 
>> > 
>> mogrify command looks like it should work, but doesn't with my
>> .bmp's.  Give the following error:
>> 
>> mogrify: Length and filesize do not match
>> (9_3L4_UL_DM_PX_TriStarHydraulicControl.bmp).
>> 
>> 
>> When I open one in gimp it gives me the .tif save option, but not
>> the .jpg.  I can save as a .tif then mogrify the tif to a .jpg fine,
>> but that's more of a pain than leaving them as .bmp's.
>> 
>> I appreciate the help.  No doubt the problem is the brain dead
>> program that made the .bmps in the first place.  There aren't any
>> options on "Export to .bmp" or they probably would have had an
>> export to .jpg or .ps in the first place.
>> 
>> Customers will just have to chew on the big files.
>> 
>> Thanks for the help.
>> 
>> Lee 
>How about that - non standard BMP files.  I tried mogrify on one of the small
>BMPs which comes with OpenOffice.org; no problem.
>
>-- 
>Len Lawrence
>
I use the small script attached to do
a similar task. Put it in 
/usr/bin or /usr/local/bin
then using a terminal change to the
directory containing the bmp files and
type convert1. The script uses convert
from ImageMagick, so you should have
ImageMagick installed. You could also
modify the script to adapt other features
of the jpg format. I hope it helps.


Ciao
cctsim








__________________________________________________________________
Introducing the New Netscape Internet Service. 
Only $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need. 
#!/bin/sh
# Convert a direcotry of bmp 2 jpg

for  image in *.bmp
do
convert $image "$(echo $image | sed 's/bmp//g')jpg"
done
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to