GDevelop icon indicating copy to clipboard operation
GDevelop copied to clipboard

Base64 strings as sprites

Open ran4erep opened this issue 3 years ago • 8 comments

Description

It would be nice if we could add sprites not only from file system or from URL, but from Base64 strings as well

ran4erep avatar Jun 02 '22 13:06 ran4erep

Did you try using a data url? As long as URLs are supported you should be able to use Base64 strings as well using those.

arthuro555 avatar Jun 03 '22 08:06 arthuro555

oh, it's already exist, nice. Then you should add info about this possibility into description block when adding a file from URL

ran4erep avatar Jun 03 '22 12:06 ran4erep

Thanks @arthuro555 for the suggestion! I'll see how we can add info about this possibility!

AlexandreSi avatar Jun 06 '22 07:06 AlexandreSi

Personally, I believe that wanting to use base64 encoded images is something a very select few users would ever want to use, and if a user even knows about base64 encoded images I would expect them to know what data URLs are too. I feel like including this in the IDE would be giving users an unnecessary detail that would confuse most of them. One of GDevelop's goal being to be easy to understand and accessible, I don't think we should add such technical details in the description of the resource URL selection field like suggested.

arthuro555 avatar Jun 06 '22 07:06 arthuro555

maybe in desktop version only few users will be using Base64 images, but in browser version it's more preferable over the usual URL's. Because no need to find a hosting for images to keep them for your project

ran4erep avatar Jun 06 '22 08:06 ran4erep

Personally, I believe that wanting to use base64 encoded images is something a very select few users would ever want to use, and if a user even knows about base64 encoded images I would expect them to know what data URLs are too. I feel like including this in the IDE would be giving users an unnecessary detail that would confuse most of them. One of GDevelop's goal being to be easy to understand and accessible, I don't think we should add such technical details in the description of the resource URL selection field like suggested.

I agree with you. It could be a button Advanced options at the lower left corner of the dialog.

maybe in desktop version only few users will be using Base64 images, but in browser version it's more preferable over the usual URL's. Because no need to find a hosting for images to keep them for your project

There might be some news coming in the next months on this side. In the meantime, we could add this button.

AlexandreSi avatar Jun 06 '22 08:06 AlexandreSi

that would be nice, it's a really good idea about Advanced options button

ran4erep avatar Jun 06 '22 09:06 ran4erep

Two things:

  • There is definitely a need for hosting resources. We'll have something to help this in the short term future.
  • Base64 works, but it's a "hack", in the sense it was never officially supported. You can use it for now, but be prepared to change this in the future once we have something new :)

4ian avatar Jun 07 '22 14:06 4ian