I have deployed the card validity checker app, which works perfectly well for me. But when another user access this app from their Chrome browser (they have also tried it on Windows, MacOS and also Microsoft Edge), the app throws an error. Specifically, the downloaded files, when reuploaded to the App on a different page, throws an error instead of displaying the card validity.
Can someone tell me if this is a problem with Streamlit or if this is a problem with the way I have deployed, or written the program files, for example?
I ran your app, downloaded the example picture and got this:
Which the app is unable to prcess. Compare it with the picture in the repo, which works as expected:
I have no idea why this is happening. I forked your repo, deployed to Streamlit Cloud without making any changes and I could download the correct picture. https://cardvaliditycheckerhome-o4ea2k.streamlit.app/
So you mean to say that this has something to do with the resize of the image in the download button or something as such?
Is there a possible workaround?
Also, I believe that I had changed the resize so that it doesn’t affect the downloaded image, soon after I posted my question here. I believe that is the reason why you received the image as it originally is?
I haven’t a clue as to why this happens for others. It works on my browser but when my colleagues use the App, they face the same problem that you have mentioned.
All I know is that when I use your application, the downloaded images do not match the ones in the repository. Actually they match the displayed (resized) images. I don’t know why that happens.
Looking at the code I don’t think it should happen. When I deploy your application it doesn’t happen. But when I run your application it does happen, I have no idea why.
The issue was with the resize of the display_image.
I resized the image for display but passed the actual image dimensions for download button and it worked. Intuitively it made sense. I also took down the App and redeployed it. So maybe that has something to do with it as well?
I guess you’d know it better than me. Thank you anyway!
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.