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
Comment #0.0
RogerRogers CreditAttribution: RogerRogers commentedWindow(s)
Comment #0.1
RogerRogers CreditAttribution: RogerRogers commentedRemoved extra info about windows that wasn't necessary.
Comment #1
RogerRogers CreditAttribution: RogerRogers commentedOk, 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';
Comment #2
RogerRogers CreditAttribution: RogerRogers commentedComment #2.0
RogerRogers CreditAttribution: RogerRogers commentedrevision