Questions tagged [pngcrush]

PNG (image) file optimizer utility to improve data compression and optionally to remove unwanted data chunks, and to list the chunks in the file.

Pngcrush is a command line utility for optimizing (Portable Network Graphics) files.

Its main purpose is to reduce the size of the PNG IDAT datastream by trying various compression levels and PNG filter methods. It also can be used to remove unwanted ancillary chunks, or to add certain chunks including gAMA, tRNS, iCCP, and textual chunks.

The command "pngcrush -n -v file.png" provides a listing of the chunks without writing a new file.

35 questions
1
vote
1 answer

How to specify a method in pngcrush?

I am optimising a whole directory of images with 10000 png images. I did use the brute to test and for the first 100 it was method 11 is the best for compression. You know that pngcrush uses like 130 different methods to try on an image and this is…
Momo
  • 523
  • 3
  • 11
  • 23
1
vote
2 answers

Where can I get `pngcrush` tool optimizes images for iOS and runnable on Linux server?

iOS uses a variant of PNG processed a tool called pngcrush. If I want to optimized the images on Linux server, how can I do it?
eonil
  • 83,476
  • 81
  • 317
  • 516
1
vote
1 answer

gulp-imagemin task run gives error

I am trying to compress my images for the production server but getting an error in running the gulp-imagemin task. This is my gulp task: gulp.task('images', function(){ gulp.src('builds/development/images/**/*.*') .pipe(gulpif(env ===…
Aakash Thakur
  • 3,837
  • 10
  • 33
  • 64
1
vote
1 answer

PNG images in Folder References are not pngcrushed when copied into bundle?

From reading building logs of Xcode, I noticed that for PNG images in Groups, command like this is run: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/copypng -compress "" resource_folder_path/image.png…
an0
  • 17,191
  • 12
  • 86
  • 136
1
vote
2 answers

what's the reason the PNG image need to be crushed?

I noticed that some article talking about crushed PNG images and how to uncrush them. What's the purpose of crush the images in the first hand? And also can the crushed images still be loaded using [UIImage imageWithName:]?
tom
  • 14,273
  • 19
  • 65
  • 124
0
votes
2 answers

iOS - pngcrush discrepancy

I seem to be having issues replicating the iOS png optimizations that xcode makes. Our app allows users to update content via an asset server by comparing the checksums of the files stored in the bundle with those on the server. Before any pngs are…
Downie
  • 193
  • 1
  • 13
0
votes
1 answer

How to PNGCrush on directories in Linux (Mint/Ubuntu)?

I have a directory tree with many image files and I have to move then for another directory tree. But in this destiny directory my png files must be compressed. For instance: Soure directory…
0
votes
0 answers

Does imageoptim produce a smaller IPA than Xcode's version of pngcrush?

imageoptim claim to make smaller pngs than Xcodes does, but I don't understand why Xcode wouldn't just use imageoptim instead if it was better. Does anyone have some data on imageoptim pngs vrs xcode's PNG compression size and iOS load time?
Robert
  • 37,670
  • 37
  • 171
  • 213
0
votes
2 answers

Escape variables with filenames that have spaces

I'm using this line to batch my pngcrush, yet my files contain spaces, which get's placed literally into $line, making them get skipped as they aren't valid paths: ls *.png | while read line; do pngcrush -brute $line compressed/$line; done How can…
user1467267
0
votes
0 answers

JPG and PNG compression, PHP and Ubunutu with jpegtran and pngcrush

I have several hundred images I need to optimise and compress. I have found the following script on github: https://gist.github.com/ryansully/1720244 which works ok. However the filesizes of the jpgs are not much smaller after compression. For…
MP_Webby
  • 916
  • 1
  • 11
  • 35
0
votes
1 answer

APK file size not changed after running pngcrush on over 1000 images

I have generated a release APK file for a word game with game board and letter tile images and its size is 14.157.885 bytes. Then I have run pngcrush on about 1000 images in my Android Studio project, then "Clean Project", "Rebuild Project" and…
Alexander Farber
  • 21,519
  • 75
  • 241
  • 416
0
votes
1 answer

Error with PNG files extracted from iPhone app?

I extracted a photo folder from an iPhone app but all the PNG files in the folder are not viewable. I tried googling it up and then tried few apps that fix PNGs from iPhone, but none of them worked. One app even said that my files were NOT in PNG…
erroroll
  • 13
  • 3
0
votes
1 answer

Uncrush PNG image on ubuntu?

IPA image uses pngcrush to compress PNG image, but I want to uncrush a PNG image on Ubuntu. Can anyone give me any idea?
0
votes
2 answers

pngcrush causing black background on some images

I'm using the following to optimize some png images with pngcrush: exec( "pngcrush -q -blacken -brute -reduce -rem alla -rem text -rem time {$source} {$destination}", $output, $return_var ); The optimization works really well, but for…
josef.van.niekerk
  • 11,941
  • 20
  • 97
  • 157
0
votes
1 answer

Error While Publishing App

I got error that png files not found when I archive my app. Error: While reading /Users/AccountName/Desktop/update/App/App/top_bar.png pngcrush caught libpng error: Not a PNG file.. Could not find file:…
vivek bhoraniya
  • 1,526
  • 2
  • 17
  • 36