Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a Screen1 AutoscaleImages property #2015

Open
ewpatton opened this issue Feb 3, 2020 · 5 comments · May be fixed by #2052
Open

Implement a Screen1 AutoscaleImages property #2015

ewpatton opened this issue Feb 3, 2020 · 5 comments · May be fixed by #2052

Comments

@ewpatton
Copy link
Member

ewpatton commented Feb 3, 2020

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. 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.

@jsuyash1514
Copy link
Contributor

@ewpatton I would like to work on this issue.

@ewpatton
Copy link
Member Author

ewpatton commented Feb 5, 2020 via email

@jsuyash1514
Copy link
Contributor

@ewpatton I've added the required property to the form component.
Here's the link to my changes - link
But, during runtime, I'm getting the following error whenever I try to disable the autoscale feature.
error

Can you please help me out?

Thank you in advance.

@ewpatton
Copy link
Member Author

@jsuyash1514 After you've compiled the system, make sure to install the companion from build/buildserver/ onto your device, otherwise you won't have the new functionality.

@AMamdo7
Copy link

AMamdo7 commented Nov 21, 2020

Hi all,
i 'm having an issue as i upload a FHD (1080x1920) images to be (Screen BackgroundImage) for a multiple screen app in app inventor but their quality get lowered automatically ,whether the sizing was Fixed or Responsive .is there a way or even a work around to get the original quality of the background?
note:
tested on AppInventor release nb186

@ewpatton ewpatton linked a pull request Jan 27, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants