Languages

Menu
Sites
Language
New picture not shown correctly by Gallery app (Gear S3).

I use web Filesystem API to write picture into images/ folder. I can read and view that image but after entering Gallery app in Gear S3

the picture is not shown properly. Gallery shows my picutre only as temporary gray icon. I assume Gallery app or TizenOS doesn't update

that picture in internal Tizen media data base. I am not sure it is true, it's only my assumption.  I tried to use tizen.content.scanFile(fileURI).

Nothing changed. 

Is there any way to force TizenOS or Gallery app to show new pictures correctly?

 

shot
 

View Selected Answer

Responses

6 Replies
André Reus

hi Slawek Kowalski, I have just checked copying some images (jpeg, png, bmp) from my pc to gears images folder ...and checked from gallery app properly... Please check your written images are not corrupted ...you can also check copying from pc to be sure that the gallery app is not the problem .. you can also copy your written images from gear to pc for checking...thanks 

Slawek Kowalski

I copied images from my phone by Samsung Accesory Protocol (SAP FileTransfer) and all pictures are shown correctly by other apps but not Gallery app. Also image created in the app and written into images/ folder is correct but not shown by Gallery app. After rebooting my Gear pictures from phone via SAP still are not shown (only temp icon) and pictures created by my app are shown normally.

Slawek Kowalski

How did you copy images from computer to your Gear? What tool do you use?

Slawek Kowalski

And additionally I have noticed that pictures sent via Gear Manger are changed. Both picture resolution and file size. Picture 1.2MB 1280x720 is changed to 720x480/400KB. If you use a tool to send picutres from computer designed by Samsung probalby it happens the same. Mayby you can check it out.

It seems that pictures for Gallery app are somehow processed by Tizen system.  It makes sense due to watch limitations like circular display, limited storage size, slower CPU etc. If so why Samsung doesn't light devevlopers about that and pass a tool to meet this requirements? 


 

André Reus

You may try by changing different parameter when writing images from app .... may be something is missing ... goodluck 

Mark as answer
Slawek Kowalski

I found workaround. A file from host sent via SAP lib save into temporary file then copyTo() to destination file-name, delete tmp file.

And finnally call scanFile() on dest file. After that the image-file is fully visible in Gallery app. Voila!

Maybe it helps someone.