Just FYI, I've tested and this module works on Windows. BUT, I'm really confused.

How is this module finding my pngquant.exe? I've looked in my windows path variables and pngquant's path isn't there. I've put the binaries in a non-standard location, or at least, I'd be surprised if anyone would automatically think to put them at C:\bin\pngquant-windows\. But, it's working! And, if I change the path, it stops working.

I tried changing to pingquant improved, but can't get it to work. I don't think I installed pngquant, it was just a download and unzip, so I don't see how it could have registered in the Windows path settings anyway.

It's like voodoo!

I'd love to understand this better, because I have a feeling this will bite me when I go to production.

Comments

RogerRogers’s picture

Issue summary: View changes

Window(s)

RogerRogers’s picture

Issue summary: View changes

Removed extra info about windows that wasn't necessary.

RogerRogers’s picture

Status: Active » Fixed

Ok, I think I was confusing myself, I think that you must define the path to the .exe in the .module file. I did this and it works well. So, on line 74 (of the current module), put in your path, e.g.

$pngquant_path = 'C:\bin\pngquant-windows\pngquant.exe';

RogerRogers’s picture

Status: Fixed » Closed (fixed)
RogerRogers’s picture

Issue summary: View changes

revision