LINUX programming

Moderators: ITA
Number of threads: 1347
Number of posts: 2935

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
makefile to convert jpeg files to png files Posted by henningbaer on 29 Nov 2009 at 4:16 PM
Hello!

I'm desperately trying to write a makefile that converts and scales jpeg files to png files in subdirectories

I want to use netpbm, so I just need the commands:
anytopnm
pnmscale
pnmtopng


For various reasons i want to use a makefile. This is the first time i use the make tool and it's a too complicated for me.
Here is my attempt, without resizing untill now:

all :
    find -name "*.jpeg" > alljpeg.txt
    @anytopnm `cat alljpeg.txt | sort | uniq -u` > $@.png
    @echo "$@" >> clean.log


but it doesn't work, I already had six attempts but always the same, I'm reading now for 4 hours an I still think I#m not any closer to a solution.

Any help will be appreciated!

Clueless greetings

Henningbaer



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.