Electronics > Beginners

I did I kill my mosfet ?

<< < (4/4)

Zero999:

--- Quote from: sonicj on September 27, 2010, 03:41:43 pm ---i made a little mac app for this... it converts the 320px x 240px Bitmap to a 640px x 480px PNG and places the old bmp in the trash. its attached if anyone cares to try it. just drag the file(s) onto the app icon. cheers!
--- End quote ---

What I'd like is a PNG optimiser.

Too many picture editing programs inefficiently compress PNGs or always select 24-bit or 32-bit modes when it's just a line drawing.

The program should count the number of colours used and if needs be reduce the bits/pixel and save with the appropriate palette, if the alpha channel isn't  being used remove it, if it's just greyscale save in greyscale mode and if it's a black and white line drawing save in monochrome mode (1-bit per pixel.

sonicj:

--- Quote from: Hero999 on September 28, 2010, 01:33:13 pm ---
--- Quote from: sonicj on September 27, 2010, 03:41:43 pm ---i made a little mac app for this... it converts the 320px x 240px Bitmap to a 640px x 480px PNG and places the old bmp in the trash. its attached if anyone cares to try it. just drag the file(s) onto the app icon. cheers!
--- End quote ---

What I'd like is a PNG optimiser.

Too many picture editing programs inefficiently compress PNGs or always select 24-bit or 32-bit modes when it's just a line drawing.

The program should count the number of colours used and if needs be reduce the bits/pixel and save with the appropriate palette, if the alpha channel isn't  being used remove it, if it's just greyscale save in greyscale mode and if it's a black and white line drawing save in monochrome mode (1-bit per pixel.
--- End quote ---
thats like 8 bajillion times more complicated than my app! lol!

the thing i "wrote" is just a 3 step automator workflow in disguise. you might be able to make a workflow script that handles most, if not all of the variables you listed... i really don't know though as that was the first and only time i've messed with it.  ;D
-sj

Zero999:
I suspect a Gimp script is probably the best route to go down, rather than trying to write such a program from scratch.

NiHaoMike:
I believe ImageMagick will do exactly what you want. And it is designed to be used in shell scripts.

Navigation

[0] Message Index

[*] Previous page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod