makefile to convert jpeg files to png files - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

makefile to convert jpeg files to png files

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:

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

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
Sign In or Register to comment.