bmp to gif using convert


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers bmp to gif using convert
# 1  
Old 02-16-2010
bmp to gif using convert

Hi Everyone,

I am trying to use "convert" to create a movie from .bmp files. I have about 100 .bmp files which I would like to include. I use the following command:

Code:
convert *.bmp test.gif

The problem is that on the cluster I am using there doesn't seem to be enough memory to do this. I get a memory allocation error.
Computer support suggested using the following which I assume first converts each .bmp into a gif and then creates the movie from the gifs.

Code:
for f in *.bmp; convert "$f" "${f/bmp/gif}"; done
convert *.gif foo.gif

trouble is, there seems to be some king of syntax error in the above code which I can't spot.

-bash: syntax error near unexpected token `convert'

Can anyone help me out here-either on how to get the above code to work or any other way of bypassing a memory allocation error?

THanks

Last edited by jenjen_mt; 02-16-2010 at 10:42 AM.. Reason: left out data
# 2  
Old 02-16-2010
Code:
for f in *.bmp
do
        convert "$f" "${f/bmp/gif}"
done

convert *.gif foo.gif

 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. What is on Your Mind?

GIF Anim of my AMIGA real Oscilloscope.

Firstly I don't know where to put this so if it is the wrong forum then chastise me... ;oD I built the hardware and wrote the software for an Audio Oscilloscope DC-100KHz in 2001 for the A1200(HD) via the AMIGA parallel port. It clocks the port at 200KHz, although 250KHz was easy enough via a... (4 Replies)
Discussion started by: wisecracker
4 Replies

2. Solaris

Solaris 10 GIF files corrupt during unzip

Problem occurs on one Solaris build. Every time we unzip the Jan CPU, there are several patches that error out (appears to be related to the GIF files). When we unzip the CPU on another Solaris build to a network storage area, we can execute without issue on the original machine. Any ideas? ... (1 Reply)
Discussion started by: grahamr72
1 Replies

3. Shell Programming and Scripting

Sendmail including gif's ?

My department uses an outlook mail merge to send login information to multiple users who request access. I would like to use sendmail for obvious reasons. I copied a sample email source, with all the disgusting html formatting from outlook, and can successfully send emails almost exactly as I did... (0 Replies)
Discussion started by: MaindotC
0 Replies

4. Web Development

How do I update GIF file?

Hi, I am trying to help my friend with her website, trying to update this GIF file, I am having so much hard time. Please advice. I have uploaded the GIF file for your review. She wants to keep the same color but just change the scheudle around. It looks so simple but not sure why it's... (3 Replies)
Discussion started by: samnyc
3 Replies

5. UNIX for Dummies Questions & Answers

Command-line tool for .gif files

Hello! I'm searching for a little (as basic as possible) command -line tool for viewing gif animations. I found gThumb and animate (imagemagick), but they both have a little problem... gthumb: no possibility of changing the background when viewing in fullscreen animate: no possibility of... (0 Replies)
Discussion started by: al0x
0 Replies

6. UNIX for Dummies Questions & Answers

Apache's strange loading of .gif and .jpg images

Hello! I have got next issue: my website is not showing up .gif and .jpg images, but by the direct links (ex. http://somedomain.com/img/logo.gif) i can view them without any problem. Also if any image is clicked from http://somedomain.com/img/ URL , i get error: Forbidden You don't have... (2 Replies)
Discussion started by: v1xon
2 Replies

7. Windows & DOS: Issues & Discussions

Unix text doc with a .gif image

I would like to insert a .gif image into a text file that is generated by a Unix-based database application. Can anyone please tell me how I can achieve this? (7 Replies)
Discussion started by: sunita_rao
7 Replies

8. UNIX Desktop Questions & Answers

Converting BMP to BM (or other unix format)

Hey pllz, ive got a little problem, i want to convert a bmp of gif or jpg to an unix format (bm) anybody got any suggestions ? greets\EJ (1 Reply)
Discussion started by: EJ =)
1 Replies

9. UNIX for Dummies Questions & Answers

PDF/EPS to GIf/JPG Help!!

Hello. I have a large number of EPS files and a lesser number of PDFs that I need to convert to GIFs/JPGs using a Unix system. Is there a unix utility or application out there that can do this conversion? Thank you in advance for any help you can provide. -Pook (1 Reply)
Discussion started by: PookJP
1 Replies
Login or Register to Ask a Question