Image to code converter

Créations

strangenikolai

NEW il y a 5 ans

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

il y a 5 ans

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

Sorunome

NEW il y a 5 ans

strangenikolai strangenikolai

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

gantois_fabrice

NEW il y a 5 ans

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 il y a 5 ans

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 il y a 5 ans

[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 il y a 5 ans

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

il y a 5 ans

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

Sorunome

NEW il y a 5 ans

makerSquirrel makerSquirrel

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

hiveplay12345

NEW il y a 5 ans

.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 il y a 5 ans

.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 il y a 5 ans

.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 il y a 5 ans

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

il y a 5 ans

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

hiveplay12345

NEW il y a 5 ans

jicehel jicehel

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

jicehel

NEW il y a 5 ans

Nice  ;) 

sumitbis919

NEW il y a 5 ans

Message supprimé

tikkel

NEW il y a 5 ans

No function!

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

Sorunome

il y a 5 ans

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