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
27
votes
6 answers

Xcode5 pngcrush caught libpng error

I am looking to complete an app I have created within xcode5. When I run it with the simulator everything goes smoothly with no errors, but when I try to archive the app I get countless amounts of errors in regards to the images in the project. Many…
Francisco Paredes
  • 271
  • 1
  • 3
  • 3
14
votes
6 answers

Weird error to do with images in xcode, uncategorised, pngcrush and copy png file error?

(null): While reading /Users/lewiselliott/Desktop/Final Version/2bm/2bm/static.png pngcrush caught libpng error: (null): Could not find file: /Users/lewiselliott/Desktop/Final Version/2bm/build/Debug-iphoneos/2bm.app/static.png Command…
dev6546
  • 1,412
  • 7
  • 21
  • 40
8
votes
4 answers

Can someone please explain clearly how to use "pngcrush" for multiply items

I have a stack of hundreds of pictures and i want to use pngcrush for reducing the file sizes. I know how to crush one file with terminal, but all over the web i find parts of explanations that assume previous knowledge. can someone please explain…
shannoga
  • 19,649
  • 20
  • 104
  • 169
8
votes
2 answers

GraphicsMagick CgBI unknown critical chunk

I am using GraphicsMagick and currently running into the following issue: when executing gm identify .png I'm getting the following error: gm identify: CgBI: unknown critical chunk (.png) gm identify: Request did not return an…
bknopper
  • 1,193
  • 12
  • 28
7
votes
4 answers

Revert XCode compression with pngcrush on windows?

I have some png images extracted from IPA files and I want to get the original PNG back, I was advised that pngcush did the task required so I downloaded it and tried running the following command: pngcrush -fix icon.png icon1.png But I get a…
David Conde
  • 4,631
  • 2
  • 35
  • 48
5
votes
3 answers

How to PNGCrush a whole directory tree of PNGs on Windows?

The question is pretty much what is asked in the title. I have a lot of PNG files created by MapTiler. 24083 files to be exact. They are within many folders which are in many folders i.e. a tree of folders, duh. Thing is, it's the biggest waste of…
Pangolin
  • 7,284
  • 8
  • 53
  • 67
4
votes
5 answers

Archive app with Xcode 4.3.1 gives pngcrush caught libpng error:

The app builds fine in a simulator and on a device. But as soon as I try to archive it for submission I get: While reading /Users/adga/Documents/Adams Lokalt/Appar/NU SÅ/VertragingsApp/Rotation/Customization/Herfst2011/../../../default@2x.png…
gardefjord
  • 41
  • 1
  • 4
4
votes
2 answers

pngcrush: uncrush on linux?

Apple's iOS SDK use a modified version of pngcrush for converting png files in iOS bundles. Their version can also revert the changes (using the "-revert-iphone-optimizations" switch), but the original version can't. Is there a tool that can be run…
noamtm
  • 12,435
  • 15
  • 71
  • 107
4
votes
3 answers

What is PngCrush in iOS?

i know that Pngcrush is an image optimisation technique in iOS , but my doubt is does X-code will perform this internally during each build or before deploying our app to iTunes store we need to do this image optimization?
Graham Bell
  • 1,139
  • 1
  • 14
  • 30
4
votes
2 answers

Xcode 4.3.2 Default Launch Image Corrupted Bottom Pixel

When I launch my app on iOS 5.1, on a device (only tested on retina display so far), the Default@2x.png image is displayed with a single green line below the bottom of the image. I've confirmed the image is 640x960, and does not contain this green…
Prometheus
  • 870
  • 1
  • 8
  • 14
3
votes
1 answer

Client PNG compression using javascript like pngcrush?

I'm developing HTML5 apps. When user uploads image from their mobile, the size was too large. I want to compress the image as PNG like the pngcrush way. Is there any good way to choice on the frontend (like a javascript library)? Or is it possible…
Alfred Huang
  • 17,654
  • 32
  • 118
  • 189
2
votes
3 answers

PNG optimization issue using pngcrush tool

I have few queries on "pngcrush" tool. While xcode build process, I am setting option "Compress PNG Files" to "YES" and then checked the binary and image size. Then in my another build process, I am setting option "Compress PNG Files" to "NO" and…
user940596
  • 21
  • 1
  • 3
2
votes
1 answer

java - pngcrush sample code snipet

I am trying to use pngcrush to optimise my png image. I am able to run it on terminal with following command $ pngcrush -brute -e "Optimize.png" filename.png but i want achieve it from my Java program. How can I achieve it? I have googled it but…
Sumit D
  • 401
  • 4
  • 15
2
votes
5 answers

Pngcrush libpng error: Not enough image

This is the error Message in Xcode: While checking alphas in /Path/image@2x.png pngcrush caught libpng error: Not enough image dCommand /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/copypng emitted errors…
Sj.
  • 1,674
  • 2
  • 15
  • 23
2
votes
2 answers

How can I "uncrush" PNG's from extracted ipa packages on windows? [pngcrush]

I've been trying to uncrush PNG's extracted from an ipa for a while and can't seem to be able to get anything to work. I don't own any Apple devices (except for an iPod Touch, a gift from a friend) but I want/need an app that has only been released…
A.M.K
  • 16,727
  • 4
  • 32
  • 64
1
2 3