neilime / zf2-assets-bundle

AssetsBundle is a module for Zend Framework 2 allowing asset managment (bundling & caching)
https://neilime.github.io/zf2-assets-bundle/
MIT License
33 stars 20 forks source link

Base64 encoded asset #25

Closed ghost closed 10 years ago

ghost commented 10 years ago

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 ?

auamarto commented 10 years ago

+1

sergiohermes commented 10 years ago

+1

neilime commented 10 years ago

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

ghost commented 10 years ago

Thx neilime

sergiohermes commented 10 years ago

Ow god Emilien :D you're the man

Hug.

ghost commented 10 years ago

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 :)

marhub commented 9 years ago

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

marhub commented 9 years ago

sample css:

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

+1

neilime commented 8 years ago

Fixed in the version 3.4.2