Image to code converter

Creations

strangenikolai

NEW 5 years 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

5 years ago

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

Sorunome

NEW 5 years ago

strangenikolai strangenikolai

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

gantois_fabrice

NEW 5 years 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 5 years 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 5 years 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 5 years 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

5 years ago

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

Sorunome

NEW 5 years ago

makerSquirrel makerSquirrel

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

hiveplay12345

NEW 5 years ago

.I've got a problem with conversion.

I try to convert this image option1.bmp


I haven't got gamebuino meta yet.

So I try to run it to an emulator.

What's a problem?

hiveplay12345

NEW 5 years ago

.I've got a problem with conversion.

I try to convert this image option1.bmp


I haven't got gamebuino meta yet.

So I try to run it to an emulator.

What's a problem?

hiveplay12345

NEW 5 years ago

.I've got a problem with conversion.

I try to convert this image option1.bmp


I haven't got gamebuino meta yet.

So I try to run it to an emulator.

What's a problem?

jicehel

NEW 5 years ago

Wich transparent color have you choose ? Else could you past generated code to let us try to correct the error. It's seems that the tansparent color as been set on white at the first view but i don't understand all as back is converted into grey and we don't see the gray. Have you a 24 bits bmp ? I don't remember all the managed format but if y remember well 8 bits (and maybe 16 bits colors) bmp don't works very well. So use 24 or 32 bits to see if it's works better or use png it works fine too (i prefer dont use jpg as the compess format can make some bad things on sprites)

hiveplay12345

5 years ago

OK, Thanks, I try it on PNG Works :)

hiveplay12345

NEW 5 years ago

jicehel jicehel

OK, Thanks, I try it on PNG Works :)

jicehel

NEW 5 years ago

Nice  ;) 

sumitbis919

NEW 5 years ago

Message deleted

tikkel

NEW 5 years ago

No function!

In the browser-console comes a lot of error-messages:

Sorunome

5 years ago

Which browser are you using? For some reason this one isn't working under firefox currently, you could try this one instead!