Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide image from gallery

Tags:

android

I need to hide image(not folder) in both file browser and gallery without changing the file location. I tried prefixing the file name with . it hides the image in the file browser but still showing in gallery. Is there any way to hide image from gallery?

like image 374
Ajay Sivan Avatar asked Jan 06 '23 23:01

Ajay Sivan


2 Answers

Create a .nomedia file in the same (or parent) directory of the image. This will hide all media in the current directory and subdirectories. (The media scanner will not scan this directory).

like image 62
Thomas Vos Avatar answered Feb 04 '23 14:02

Thomas Vos


I need to hide image(not folder) in both file browser and gallery without changing the file location.

My thought over this problem is You can change the extension(make file without any extension) so media scanner will not able to detect it.

e.g file name us test.png rename it to only test

like image 28
N J Avatar answered Feb 04 '23 13:02

N J