Automattic / juice

Juice inlines CSS stylesheets into your HTML source.
MIT License
3.07k stars 216 forks source link

Images being converted to base64 #472

Closed kevosoup closed 8 months ago

kevosoup commented 9 months ago

Is there a way to prevent images being converted to base64? I'm just going the externally hosted images route for an email because it seems base64 images aren't widely accepted.

kevosoup commented 8 months ago

I found that you can pass options into the CLI. it uses web-resource-inliner .. So I'm trying to do juice web-resources-images false [input_file] [output_file] but I'm getting the error ENOENT: no such file or directory, open 'web-resources-images'

kevosoup commented 8 months ago

juice --web-resources-images false [input_file] [output_file] worked.