node-build-script icon indicating copy to clipboard operation
node-build-script copied to clipboard

Img task copies jpgtmp.jpg to publish/intermediate folders

Open jahvi opened this issue 12 years ago • 3 comments

For some reason a jpgtmp.jpg file is getting copied to my mkdirs folders, the images themselves are getting minified just fine though.

jahvi avatar Jul 15 '12 19:07 jahvi

Probably due to a clumsy implementation of the img task =/ It's related to jpegtran helper.

https://github.com/h5bp/node-build-script/blob/master/tasks/img.js#L83-114

This is used as a temporary file, as the -output option for jpegtran. Could probably clean and delete this file once the task is done though.

mklabs avatar Aug 07 '12 08:08 mklabs

I'm also getting this file as a leftover in dist/

sylvinus avatar Jan 04 '13 18:01 sylvinus

Is it something still up with latest from master? #64 should have fix it.

There is now a lot of grunt plugins for image optims, including yeoman/node-jpegtran-bin and @heldr's grunt-img (which is a fork and reworked version of the img task in use here). I'm considering removing the task from the repo and use one of these tools.

mklabs avatar Jan 09 '13 17:01 mklabs