neilime/zf2-assets-bundle

Base64 encoded asset

Opened this issue · 10 comments

Hi,

The bundle is working quite well but I've got an issue with a new asset :

Fatal error: Uncaught exception 'LogicException' with message
"data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAIORI4JlrqN1oMSnmmZDQUAOw=="
has not been cached as file
"path\to\cache\data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP\yH5BAEAAAEALAAAAAALAAcAAAIORI4JlrqN1oMSnmmZDQUAOw=="'
 in path\to\project\vendor\neilime\zf2-assets-bundle\src\AssetsBundle\Service\Service.php on line 855 

Is there a built-in solution for base 64 encoded media like this gif ?

I'm wokring on a fix, it will be available asap

Thx neilime

Ow god Emilien :D
you're the man

Hug.

Hey neilime,
I don't have the time to test it deeper but it looks like your fix in the dev-master branch is doing its job.

I am closing this issue now :)

i have latest commit ( c6e9691 ) and it's not working as expected ( file is base64 encoded png ).

sample css:

form fieldset.buttons .commit input { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAyCAYAAACd+7GKAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAClJREFUeNpi/v//vwMTAwPDfzjBgMpFI/7hFSOT9Y8qRuF3JLoHAQIMAHYtMmRA+CugAAAAAElFTkSuQmCC); }

+1

Fixed in the version 3.4.2