tinyDB storing images (or paths to them) and viewing them - app-inventor

sorry for the inconvenience, i am trying to build an app that helps autistic children communicate by pressing buttons (with pictures) and having them read. That works fine. The issue is about the menu - i want to make it possible for users to upload images via TinyDB (or at least paths to images that should be accessed). I've found tutorials about how to take a picture with the camera and store it on the SD or load such from the ImagePicker, but how could i make it possible for these images to be shown in the app any time it's on?

Do the tutorials to learn the basics of App Inventor!
In TinyDB you only can store text, which means, you store the path to your images there. For easier handling, you could store the paths to the images in a list and the list in one tag in TinyDB. To display the images, you could take a look at this snippet. You also can download the example project there.

Related

custom gallery from user phone

I want to be able to show the user images from his phone gallery, and pick one or more, the images should be displayed in 2 or more columns according to the user choice.
I looked for some plugins, and didn't find one that solves that problem.
Is that possible using conventional Android/iOS functionality?
If not, I could build a custom gallery for the user, but the question is- how do I get all the gallery names (Video/Camera/Screenshots) etc.) and file paths?
Tried to look in nativescript-imagepicker, but it doesn't seem to give me that functionality. Any help would be appriciated
If you like to customise the layout then you got to build one from scratch. You would have to use the native apis, MediaStore on Android / PhotoKit on iOS to read available image list and wrap them on your own layout.

Uploading and referencing custom images in BigCommerce/Stencil

Recently started work on a BigCommerce project and on the homepage I want to have a theme area where normal site admin users can upload their own images based on holidays (Xmas, halloween etc) in the theme editor.
I know how to add in some custom elements in the theme editor using the Schema and Config files (headings, text, font colours etc), and how to reference them in the homepage. I'm also fine with referencing set images in the assets folder which aren't going to change, and manually coding references to them.
However I can't quite seem to work out how to add a custom image upload to the theme editor, or how to reference it in a page. Can't seem to find any answers in the Stencil documentation or usual Google searches etc either.
The Stencil Theme Editor currently only supports the file upload data type in the Optimized One-Page Checkout customization settings, but there are a couple of possible workarounds to allow the user to upload their custom background image and then reference it in Theme Editor settings:
One option would be to have the user upload their image to WebDAV, making sure that their image followed a naming convention that you specified. For example, the Halloween image could be required to have the file name halloween.png. You could map that value to a Theme Editor dropdown setting for Holiday Background>Halloween.
Another solution might be to have the user upload their image to WebDAV as mentioned above, but instead of a dropdown menu, you could have the user type their file's name into a text input setting in the Theme Editor. Keep in mind though that there's a 64 character limit for input values.
Hope this helps!
There are 4 ways to get images into the BigCommerce store.
You can:
Upload into the content folder through webdav. Then the images would be referenced like url.com/content/image.jpg. This does require a webdav connection and while everything does point you to using file managers like cyberduck, you can actually map a drive to a network resource to make this super easy. This mean you can create a z drive that is actually your bigcommerce content upload through webdav. It's pretty easy to set up and for customers to use. The drawback is that these files do not get put on a CDN so there's a little loss of performance.
Upload into the theme's images folders. This is complex and would require your client to figure out the stencil local dev connection and push versions up to their store. This would allow the images to be CDN'd but is super complex and your clients won't figure it out... It could also expose you to some long-term version control issues as they may be overwriting you or vice versa.
You can use the media manager to upload images. If you're referring to them in code, an easy trick is when your clients want to replace an image, to delete it and upload a new one with the exact same name... then the reference doesn't break. This is the easiest way to deal with site-wide issues from the client-side. Images are CDN'd this way as well.
You can consider using the marketing banner function for semi-temporary marketing messages. This is what it is made for, the images will be CDN'd and it's full GUI with no techy connections for your clients to figure out. This is perfect for banners that span a single page, but I don't think there is currently a side-wide setting for locations.

Generate custom Finder thumbnails for some file types

I'd like to be able to generate my own thumbnails for some image files with custom extensions (say, a .canon file that is really a TIFF), so that Finder would use them.
I don't want to change the file contents (nor am I interested in the embedded tiff thumbnail).
Creating the thumbnail from the file's contents would be easy, the tricky part is integration. Does anyone know if it's possible?
The custom extensions won't be associated to any/other app.
I've done a lot of iOS development but know very little about OS X components.
If it's not possible to use Finder at all, is it at least possible to store the thumbnails in resource forks and have them used by, say, a custom filesystem browser?
File thumbnails, as well as full-size previews (which are displayed when you tap the space bar), can be generated dynamically by Quick Look plugins for any file type that they're registered for. The thumbnails do not need to be stored in the file, although you can certainly use pregenerated thumbnails if they're already in there.
For more information on Quick Look, please refer to Apple's Quick Look Programming Guide.

Images not visible when the same dashboard is viewed in different systems in Tableau

Images not visible when the same Tableau dashboard is viewed in different systems. Instead of the image, Cross marks are coming. The images are created as different sheets and have actions applied on them. Can anyone please inform how can we fix it?
Basically,
I want to create a link on the dashboard clicking which I will be directed to Another Sheet/Dashboard. So, I put an image and added Action to it, clicking this image you will be directed from the present dashboard to the other Dashboard. But the problem is the Image is visible in my workbook but when I'm sending this file to some other people, some of them are observing a "Cross" mark instead of the Image, but the action is working fine. I tried both tableau 8.0 & 8.1.It's persisting in both
If you are using tableau public keep this in mind:
Tableau Public won't let you add an image file from the web. URLs can
be used to create links within a dashboard, but they cannot be used as
a file source. For an image, you would need to link to a physical file
location, not a URL. (See post)
If you are using tableau desktop and custom shapes, the problem might be that the other people viewing the dashboard do not have access to the file that contains the shape. I am guessing that you might need to share those files with them or go back to using a built in shape.
See more here: http://onlinehelp.tableausoftware.com/v6.1/public/online/en-us/i1114815.html
To create custom shapes:
Create your shape image files. Each shape should be saved as its own
file and can be in many image formats including bitmap (.bmp),
portable network graphic (.png), JPEG, graphics interchange format
(.gif), and so on.
Place the shapes into the My Tableau Repository folder located in your
Documents folder. The shapes should be put into a new folder inside
the Shapes folder. The name of the folder will be used as the name of
the palette in Tableau.

Outlook truncating images

I'm designing an e-mail template for a company and it tests great in everything besides Outlook. For some reason the bottom images of the email look like they're loading half way and then stop. I've found information online that Outlook won't load images with a height greater than 1728px, but the tallest image we have is much shorter than that. There are images beyond 1728px on the page that are loading just fine, so I'm not sure that's the issue. Does anyone have any experience with this? Any advice would be helpful.
Hi Here is a quick solution for this to be done in the outlook.
Use photoshop and follow this steps:
Once the design is over, slice up the image parts / height(1728px as per yout example).
Save this as, File->Save for web and device. click save. you will get option under save box
Under format change this to HTML and image from drop down.
Save them in one folder. A new HTML file and image file will be created in this folder.
Open this HTML file in a browser.
Just copy and paste the content in the outlook using a single cell table.
That's you are done. Now your image will load without any problem.

Resources