unoplatform / uno.resizetizer

The home for Uno.Resizetizer, an image resizting tooling for Uno Platform apps
https://platform.uno
Other
16 stars 7 forks source link

Add image as splash background #192

Closed mcocaroUX closed 11 months ago

mcocaroUX commented 11 months ago

What would you like to be added:

Ability to add an image as splash background

Why is this needed:

We often use images as background

For which Platform:

Anything else we need to know?

pictos commented 11 months ago

@mcocaroUX, by image, do you mean a png file?

mcocaroUX commented 11 months ago

@pictos yes, a png would be ok

pictos commented 11 months ago

@mcocaroUX I'll double check during the week, but I believe you can use a png file... The bad part is that png and jpeg aren't resizable by default, so it can be pixelated when resizing. Any reasons to not use a svg file?

mcocaroUX commented 11 months ago

What we want to do is a splash with a picture as background and the logo of the app centered (No issues showing the logo) but I don't see any option to set up the background other than the color

pictos commented 11 months ago

Ooh, I see now! Do you mind creating a small sample, in the way you do it today? I would like to use it as reference to do some research around that

nickrandolph commented 11 months ago

This isn't supported on Android (post Android 12 I think) or Windows that just put image in centre of screen with solid background color. As @pictos suggested, if you have a sample app you can share, we can take a look at how to support that with resizetizer

mcocaroUX commented 11 months ago

@pictos @nickrandolph I'm not sure what should I include on a sample app for this, given that Im not getting any error. I can create a new project with the image I want to add, does that would help?

pictos commented 11 months ago

@mcocaroUX yes, that does help... The idea of the sample is just show us how you do it today, and how we can automate it (if possible)

mcocaroUX commented 11 months ago

Ok, I created the sample. Just to clarify, this is what we archived: image

And this is what we want to archive: image

Sample: SplashSample.zip

francoistanguay commented 11 months ago

As Adnroid 12 doesnt support it, we're nt planning to support/fix this at this point in time.