When I upload an image is uploaded at high quality, even when viewing the internal files of the app come out with good quality, but when viewing it in the app is displayed at low quality, I could help?
Pay_QR_Create.aia (7.0 MB)
Once upon a time, programmers worked on this problem, but they probably lacked perseverance.
opened 04:35PM - 03 Feb 20 UTC
help wanted
status: new
feature request
affects: ucr
priority: low
**Describe the desired feature**
Due to possible resource limitations of the β¦ device, App Inventor has always scaled images down. This is done by computing a scaling factor in [MediaUtil](https://github.com/mit-cml/appinventor-sources/blob/b4bbaa77d1a958dd60881c672aa992a8523bef75/appinventor/components/src/com/google/appinventor/components/runtime/util/MediaUtil.java#L588). As devices have increased the amount of RAM available to apps, it seems reasonable to allow people to disable this "feature" in order to use high resolution images in their apps. I propose that we add a `AutoscaleImages` property to Screen1, defaulting to `true` for compatibility reasons, that developers can use to turn off scaling of images to take advantage of higher resolution displays.
**Give an example of how this feature would be used**
Anyone showing camera images, etc. could use this to show the full resolution image rather than a scaled version.
**Why doesn't the current App Inventor system address this use case?**
App Inventor gives no option to control this behavior, but people expect that if they provide a high res image it will show accordingly. Instead, it is scaled down and may become "fuzzy".
**Why is this feature beneficial to App Inventor's educational mission?**
While there isn't a direct benefit, students may appreciate having the ability to show higher quality images and not have their apps look "scaled down" compared to other apps.
1 Like
They should work on it, that the images reduce their quality is a great impediment for many things (At least in my case yes).
Developers should provide reasonable sized images and not depend on the compiler to reduce a large image to fit a small space on an Android. Using the app to significantly reduce the size of an image wastes cpu capacity. You shouldn't expect the built in algorithm to reduce image size to work miracles
See your earlier post Error when exporting the application [DX error again] - #3 by Patryk_F
Image 5251px x 5251px stored in Media
app displayed in 165px x 165px...
1 Like
will seting the background image base64 can fix this issue?
I think it is enough to use the simplest extension that loads an image as the background of any component, bypassing the built-in procedures for setting the background.
I got this:
Base64 Image To Component
Adds a background image to just about any user interface component in the palette, even those that do not have a built-in image property. If you want to use base64 encoded images, this may provide some flexibility in your block coding and UI design.
Latest version : 1.0
Tested : tested on App inventor 2 (n187d), in companion (2.61u) on Android 10.
Released : 2021-10-29T23:00:00Z (UTC)
Last updated : 2021-10-29T23:00:00Z (UTC)
Built : using the RUSH Exteβ¦
to place a base64 image to just about every component, except a screen - couldn't figure that one out
Isn't that just another way to describe the same data?
system
Closed
May 10, 2023, 7:32pm
10
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.