Image to code converter

Creations

strangenikolai

NEW 8 months ago

Hi again, I've started to add some Palette options to this also (https://jsfiddle.net/18h1mdv0/55/) but I've found I have an issue with transparency.

I think for each image you need to sacrifice one of the 16 colours to be the transparent colour and use that as a fill in transparent areas. Either that or the index matching code needs some mods... 

Sorunome

8 months ago

that is correct, in indexed mode you sacrifice one of the 16 colors for transparency

Sorunome

NEW 8 months ago

strangenikolai strangenikolai

that is correct, in indexed mode you sacrifice one of the 16 colors for transparency

gantois_fabrice

NEW 4 months ago

bonsoir

je ne comprends pas l'usage de cette page lorsque je glisse une image .png rien ne se produit pas de code généré à recopier dans mon source ?
help me please !

merci 


jicehel

NEW 4 months ago

Tu dois la glisser dans la zone "Drop your image into this zone" et tu récupères le code juste en dessous.

Si tu as un problème en faisant comme ça, essayes de sauvegarder ton image en BMP 24bits et réessayes pour voir si c'est un problème de format de tes images en PNG.

Juice_Lizard

NEW 3 months ago

[english] It doesn't work if your image width is not a  multiple of two!!!

[français] Il faut que la largeur de votre image soit un nombre pair, sinon...

makerSquirrel

NEW 2 months ago

Hiho,

I just wanted to try this tool here, but somehow it does not react to my drag&drop actions (my scriptblocker is deactivated of course). Using Firefox 62.0.3 on Windows10 atm.

Is there some restriction I did not recognize or something else I have overlooked?


cheers...


P.S.: I have found the JSFiddle link, there don't get it run as well. So it is not connected to this page here.

P.P.S.: Javascript is enabled in my browser, so that's not it either. Suggestions are highly welcome ^^.

Sorunome

2 months ago

Yeah, it only seems to be working in chrome currently :/

Sorunome

NEW 2 months ago

makerSquirrel makerSquirrel

Yeah, it only seems to be working in chrome currently :/

You must be logged in in order to post a message on the forum

Log in