Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work in Chrome any more :( #13

Open
daniellmb opened this issue Aug 7, 2015 · 17 comments
Open

Doesn't work in Chrome any more :( #13

daniellmb opened this issue Aug 7, 2015 · 17 comments

Comments

@daniellmb
Copy link

馃槩

@adriancooney
Copy link
Owner

馃槺 What version/OS you running? The demo is still working for me on Version 44.0.2403.130 (64-bit) OSX Yosemite!

@daniellmb
Copy link
Author

Chrome 45.0.2454.26 beta (64-bit) OSX 10.9.5

It looks like the code runs without errors but Chrome isn't rendering the BG image. It'll render a BG color, but not an image (tried both a url and base 64 encoded string).

screen shot 2015-08-10 at 10 06 14 am

@k4rm3l0
Copy link

k4rm3l0 commented Sep 4, 2015

Doesn't work in Chrome - Version 45.0.2454.85 (64-bit) / OSX 10.10.5

@mudcube
Copy link

mudcube commented Sep 18, 2015

Unfortunately it appears the fun is over :(

https://code.google.com/p/chromium/issues/detail?id=495643

I believe the only way to get around would be to draw pixel-by-pixel... bonus of that would be that it would work in Firefox and Opera too ;) I think it would be intense on large images though.

@mudcube
Copy link

mudcube commented Sep 18, 2015

Just tried to do the pixel-by-pixel method; it's super slow, and could not get pixels to align properly.

Better option might be to write a DevTools extension;

https://developer.chrome.com/extensions/devtools

@jondcallahan
Copy link

馃槶

@daniellmb
Copy link
Author

Yeah this line kills it: https://src.chromium.org/viewvc/blink/trunk/Source/devtools/front_end/console/ConsoleViewMessage.js?pathrev=197345#l797

There's no way to specify an image without using url(...) is there? Even a base64 data uri uses that. :(

@kumavis
Copy link

kumavis commented Jan 9, 2016

the saddest day

@adriancooney
Copy link
Owner

@daniellmb
Copy link
Author

console.log([
"     .-.    Since it's not enabled by default,",
"    /_ _\\   I think I shall just use ASCII Art.",
"    |o^o|  /",
"    \\ _ /",
"   .-'-'-.",
" /`)  .  (`\\",
"/ /|.-'-.|\\ \\",
"\\ \\| (_) |/ /  .-\"\"-.",
" \\_\\'-.-'/_/  /[] _ _\\",
" /_/ \\_/ \\_\\ _|_o_LII|_",
"   |'._.'|  / | ==== | \\",
"   |  |  |  |_| ==== |_|",
"    \\_|_/    ||\" ||  ||",
"    |-|-|    ||LI  o ||",
"    |_|_|    ||'----'||",
"   /_/ \\_\\  /__|    |__\\"
].join("\n"));

@adriancooney
Copy link
Owner

@daniellmb don't lose hope just yet. I think we're onto something because these custom formatters are awesome. Everybody will probably in the near future have them turned on and we'll be there to pounce.

screenshot 2016-01-30 15 16 21

@mudcube
Copy link

mudcube commented Jan 31, 2016

WhatWG is working to make some more standardizations surrounding window.console (good place to weigh in on console.image and why it's important): https://github.com/whatwg/console

@leocabral
Copy link

"As far as there are multiple different ways to detect opened devtools, (and we don't aim to fight with them ATM), closing this as WontFix."

from: https://bugs.chromium.org/p/chromium/issues/detail?id=495643

hoorayy!! 馃帀馃帀馃帀

@bharatramnani94
Copy link

The demo works with Version 63.0.3239.
Maybe it's time to close this issue.

@firecrauter
Copy link

firecrauter commented Sep 1, 2022

@leobenkel
Copy link

Is there an alternative way to display an image in the console nowadays?

@mpaw
Copy link

mpaw commented Aug 21, 2023

@leobenkel This method still works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests