grunt-tinypng icon indicating copy to clipboard operation
grunt-tinypng copied to clipboard

Files are not reduced on first launch

Open HugoHeneault opened this issue 11 years ago • 1 comments

Hello.

I'm back again with my 265 images to optimize. :smile: And I noticed that I need to run many times grunt-tinypng to optimize all this images.

First wave

Running "tinypng:compress" (tinypng) task
↑ Upload:   [||||||||||||||||||||] 100% (93/93 images)
↓ Download: [||||||||||||||||||||] 100% (93/93 images)

Skipped: 172 images, Compressed: 93 images, Savings: 21.37 KB (ratio: 0.8272)

Second wave

Running "tinypng:compress" (tinypng) task
↑ Upload:   [||||||||||||||||||||] 100% (21/21 images)
↓ Download: [||||||||||||||||||||] 100% (21/21 images)

Skipped: 244 images, Compressed: 21 images, Savings: 1.35 KB (ratio: 0.9321)

Third wave

Running "tinypng:compress" (tinypng) task
↑ Upload:   [||||||||||||||||||||] 100% (3/3 images)
↓ Download: [||||||||||||||||||||] 100% (3/3 images)

Skipped: 262 images, Compressed: 3 images, Savings: 64 bytes (ratio: 0.9785)

So, I think some files are not downloaded from tinypng correctly, or not saved... I don't know. I can give you more informations about this if you want.

HugoHeneault avatar Jan 17 '14 09:01 HugoHeneault

hey, sorry for the late reply. I just pushed an updated build, 0.6.0 that refactored most of the code. What you were seeing was potentially an async issue which has been improved, let me know if you still experience this when using the latest build

marrone avatar Aug 19 '15 23:08 marrone