image-rs / jpeg-decoder

JPEG decoder written in Rust
Apache License 2.0
147 stars 88 forks source link

Need decoded #170

Closed douglasgromerjr closed 3 years ago

douglasgromerjr commented 3 years ago

url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAQAAAAD+Fb1AAAAGUlEQVR4AWP8zwADxgzG/xmA3P9AAGLApQC0NgpfF9g/mgAAAABJRU5ErkJggg==")

fintelia commented 3 years ago

That seems to be a base64 encoded PNG file while this crate only deals with JPEGs. You should however be able to open it (say with the png crate) if you first run...

echo "iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAQAAAAD+Fb1AAAAGUlEQVR4AWP8zwADxgzG/xmA3P9AAGLApQC0NgpfF9g/mgAAAABJRU5ErkJggg==" | base64 -d > test.png