I'm curious to know if someone has encountered this issue before. I created about 105 wallpapers for my Xoom and put them on the external SD in a /Wallpaper directory.
Gallery finds these images and adds them to its gallery.
However, for some reason, there are now 2 of each image in Gallery. I even deleted the /Wallpaper in the external SD and now Gallery shows nothing but blank squares and a count of 105 vs 210.
Where else does the Xoom on EOS 1.0 store these things? Thanks! I don't want to do a full wipe just to fix this but if that's the only way - so be it.
Related
Since Enomther ported HTC camera to Nexus, one issue was plaguing it. The same issue is present for Desire users that like Gallery3D.
The default sort for folders in Gallery3D is ascending - the oldest photo is shown first, the newest is last. But since it's not comfortable for the "Camera" folder, in which you want to see the last made photo without scrolling to the end, it (and also "download" folder) is sorted descending - the latest photo shows on top.
When you use HTC Camera (or just happen to have Desire), it saves photos under 100MEDIA folder, which is sorted ascending, like any regular folder. And looking at the last taken photo becomes a long task.
So, to save HTC Camera users the pain, I've modified the Gallery3D. The default camera folder always shows in Gallery as "Camera", on the top of the list, and is sorted descending. I've adjusted it to suit the different actual folders.
Update log
v0.3
Changed to Edify scripting for installation on Clockworkmod 3.x.
v0.2
- Rebased Gallery3D on Cyanogen repo - performance increases and high-res patch built in.
- Single file for both stock and HTC Camera.
- If directory "DCIM/100MEDIA" exists on SD card, Gallery assumes HTC Camera mode, using 100MEDIA as default Camera folder. If not - it uses the regular Camera folder.
v0.1
- Based on Froyo AOSP repo, 2.2.1.
- Two versions: for stock Camera and for HTC Camera.
- Added high resolution Gallery3D patch by Number22.
- For HTC Camera version - Changed the Gallery3D to use "100MEDIA" as the default Camera folder.
Instructions
Flash corresponding ZIP in recovery. It refreshes the thumbnails (erases /sdcard/Android/data/com.cooliris.media) upon flash.
HTC Camera users on Nexus ROMs: if you have any photos left in your default "Camera" folder, you'll see 2 "Camera" folders in Gallery - one with camera icon and one with folder icon. To avoid confusion, please rename "Camera" folder to "OldCamera" before flashing or before running, or move the photos from there to "100MEDIA" folder.
Thanks go to Number22 for high res patch, Cyanogen for higher Gallery3D performance.
Source
Line 47, replace with:
Code:
public static final String CAMERA_STRING = getCameraName();
Line 53, add:
Code:
public static String getCameraName() {
if ((new File(Environment.getExternalStorageDirectory().toString() + "/DCIM/" + "100MEDIA")).exists()) {
return "100MEDIA";
}
return "Camera";
}
Ever since CM6 final (kangorama) my phone had not displayed any pictures in the gallery, it was useless pretty much this actually fixed my gallery and now everything is displayed. Thanks a million jack. Got a donation link??
You are the man! thanks
Initial testing is perfect. Thanks Jack.
Works great here too. Wish the high-resolution fix would be implemented into the stock gallery app in cm6 (if it hasnt already, i haven't checked in a while). Thanks!
if i install the stock camera ...would it change the folder that my camera saves the pictures it takes???..or will it stay as normal
it will only change if i had the HTC camera right?
screenie please? O
New pictures with wrong name ..
When a new picture is taken it appears with the wrong name and no geo tag (as you noted in the post in Enomthers' thread). I've restarted the gallery3D but this doesn't correct the issue. It only seems to be corrected with a reboot.
Is there something short of a reboot I can do to see the correct name / tag ?
helfone said:
screenie please? O
Click to expand...
Click to collapse
It looks the same as the stock gallery3d except the order of pictures in "Camera" is newest first and the quality of the pictures displayed is better.
Qwest905 said:
if i install the stock camera ...would it change the folder that my camera saves the pictures it takes???..or will it stay as normal
it will only change if i had the HTC camera right?
Click to expand...
Click to collapse
The folder that your camera saves the pictures to is determined ONLY by your camera. This Gallery3D was modified to enable HTC Camera users to have the same benefits as stock camera users - having their default camera album sorted in reverse.
vk2bea said:
When a new picture is taken it appears with the wrong name and no geo tag (as you noted in the post in Enomthers' thread). I've restarted the gallery3D but this doesn't correct the issue. It only seems to be corrected with a reboot.
Is there something short of a reboot I can do to see the correct name / tag ?
Click to expand...
Click to collapse
This is most probably HTC Camera incompatibility that needs to be addressed. I suppose (I'm not sure - since I don't know how it works, Enomther or Cyanogen team would be the right people to know for sure) that intent is passed from Camera to Gallery (since the Gallery refreshes the new photo - if you just try to copy the photo to SD card by ADB, it won't "see" the photo until the media info is refreshed), but the Gallery doesn't read the information correctly (maybe because some information is passed incorrectly between HTC Camera and Gallery).
I'll try to assist Enomther in making HTC Camera and Gallery3D compatible.
helfone said:
screenie please? O
Click to expand...
Click to collapse
As noted by vk2bea, this is the regular Gallery3D with fixes/patches that show higher resolution images without degrading the resolution like stock Gallery3D (for details, see the thread that I've linked to), and HTC Camera users from various ROMs get their own version that sorts the photos in their default camera folder correctly.
antiochasylum said:
Ever since CM6 final (kangorama) my phone had not displayed any pictures in the gallery, it was useless pretty much this actually fixed my gallery and now everything is displayed. Thanks a million jack. Got a donation link??
Click to expand...
Click to collapse
I'm not much of a dev, so I didn't set up that kind of thing I'm glad you got your problems solved, most probably it's the thumbnail cache clearing process that helped you. I've experienced lots of weird behavior when I was trying to test the changes between stock and HTC cameras, but clearing thumbnail cache each time made these changes seamless.
can you post the source code?
also I have some folders with a .nomedia file but the gallery seems to ignore that... I don't know if it's this Gallery3D problem or a general problem coming from google.
DBBGBA said:
also I have some folders with a .nomedia file but the gallery seems to ignore that... I don't know if it's this Gallery3D problem or a general problem coming from google.
Click to expand...
Click to collapse
Gallery3D doesn't scan the media, it's coming from Media Provider.
Check that your .nomedia file is correct (I have 3 on my SD card and they work like they should), and try to unmount/remount the SD card, reboot and clear the thumbnail cache (installation of this Gallery3D does it).
Source for HTC Gallery fix:
/src/com/cooliris/media/LocalDataSource.java
Replace:
Code:
46 public static final String CAMERA_STRING = "Camera";
With:
Code:
46 public static final String CAMERA_STRING = "100MEDIA";
Source for the high res fix:
/src/com/cooliris/media/Utils.java
Replace:
Code:
287 roundedSize = (initialSize + 7) / 8 * 8;
288 }
289
290 return roundedSize;
With:
Code:
roundedSize = (initialSize + 7) ;
}
int vmHeapSizeMB = (int) Runtime.getRuntime().maxMemory()/1048576; // Get the VM heapsize in mBytes
int respatchQualityFactor = vmHeapSizeMB/12; // Double the quality for 24mB devices and quadruple it for 36mB devices
int result = roundedSize/respatchQualityFactor;
if(result<=1) return 1;
else return result;
As seen here, from the linked thread in Desire forum by Number22:
http://github.com/mrPjer/android_pa.../blob/froyo/src/com/cooliris/media/Utils.java
Does it mean no more color banding with gallery3D?
vegetaleb said:
Does it mean no more color banding with gallery3D?
Click to expand...
Click to collapse
Unfortunately, I believe that banding will still be present. The patch doesn't change the color depth (which is the reason for banding), only the amount of memory reserved for image processing (and its quality as a result).
How do you clear just the thumbnail cache?
antiochasylum said:
How do you clear just the thumbnail cache?
Click to expand...
Click to collapse
rm -rf /sdcard/Android/data/com.cooliris.media/cache
should do it
Rodrigo didn't mention if his MIUI ROM included this, so I copied over the stock version and it works fine. thanks.
Hi Guys,
any chance of incorporating this sort order fix (thank god someone finally figured this out) into a new apk of the app?
I have suggested it on the other thread to:
http://forum.xda-developers.com/showthread.php?t=653503&highlight=gallery&page=14
What you think?
Just flashed (yet another) rom and I seem to have lost the 'photoview' app.
When I would go to change a wallpaper or icon I USED to have the option to view with photoview (or photoviewer) as opposed to 'gallery'. The icon for it was the two semi-photo frames.
This is important to me (and probably others) because the 'gallery' takes forever to load and looks like crap because of the accelerometer. ALSO, and this is a big one, when I select a wallpaper through galley it comes in kind of 'grainey' and not clean... as if the resolution is bad even when usung the same picture as earlier.
Any thoughts?
It seems that whatever program I use to view photos, the image is clear but it loses resolion when I set it as a wallpaper.
Is this something in the framework?
i don't like the gallery either, i wish we had the htc gallery for the g tablet somehow. to view pictures i use astro most of the time.
So in cm7 settings I chose to allow the use of the internal memory and then now all of my photos sort from: earliest -> latest.
All of the earliest photos show first and I have to swipe all the way back to get to the most recent photo. This happened on all of the folders in Gallery.
Any way to change the sort order?
I am confused about the camera, if you look at the picture bellow that I have attached you can see different sizing of images. So for example if I change from 12m to 7m would that decrease quality... Are these m basically for the aspect ratio for example if my TV has 16.9 ration and I take the image at 4.3 ratio does that mean that the 3.7 m would fit on the screen but the 12m wouldn't feet the whole screen... Hopefully you get what I am talking about....
Does the quality get reduced if I use different m's I know that it still says the same pixels for quality.
Does the m mean megapixels?
Sorry this might be a noobish question but I want to find out...
Some of them are the aspect ratio, and some are the amount of compression (visual quality). So there are two 4:3 options in the list, one is going to be cleaner than the other.
The "m" represents the Megapixel i do believe which means yes, as you go down you are effectively lowering the resolution of the images. The aspect ratio is listed to the left and thats pretty much the standards. So yes, 16:9 would fill a standard wide screen and 4:3 would be the old conventional more square aspect ratio.
Hello
Yes the M means Megapixels, here is an example:
"The definition is characterized by the total number of pixels in the image, defined by the number of pixels over the image height multiplied by the number of pixels over the image width." This value is therefore absolute. An image of 2000 pixels by 3000 (6 Mpx because 2000x3000 = 6 000 000) will always have the same number of pixels, whatever size it is given next. A digital camera with a resolution of 10 Mpx (about 3888x2592 pixels) can simply offer a larger size with equal resolution.
So if you change the size of the image there will be fewer pixels and I think it affects the final rendering.
When i open camera & click on Gallery it also shows the WhatsApp videos and pics
I want to set it to only see the Camera pics i click
anyone knows how ?
Please
Always shoot in the highest mega pixels. All the lower ones do is crop the data from the largest setting and throw away the extra picture data before saving. If you save the largest mega pixel setting you can manually crop to all the others afterward if you like. But if you set it to a smaller setting the extra data is never saved.
DAvid_B said:
Always shoot in the highest mega pixels. All the lower ones do is crop the data from the largest setting and throw away the extra picture data before saving. If you save the largest mega pixel setting you can manually crop to all the others afterward if you like. But if you set it to a smaller setting the extra data is never saved.
Click to expand...
Click to collapse
Cheers
ilordvader said:
When i open camera & click on Gallery it also shows the WhatsApp videos and pics
I want to set it to only see the Camera pics i click
anyone knows how ?
Click to expand...
Click to collapse
Try putting a file named exactly ".nomedia" (without quotes, even of 0 bytes it's ok) in the Whatsapp root folder.
If you look into your sdcard folders you can find such a file somewhere, so you can copy and paste it.
Otherwise you could create this file on your PC and then copy to the Whatsapp folder.
Then reboot the phone.
themissionimpossible said:
Try putting a file named exactly ".nomedia" (without quotes, even of 0 bytes it's ok) in the Whatsapp root folder.
If you look into your sdcard folders you can find such a file somewhere, so you can copy and paste it.
Otherwise you could create this file on your PC and then copy to the Whatsapp folder.
Then reboot the phone.
Click to expand...
Click to collapse
Where in the WhatsApp folder do i put this Folder - .nomedia
In WhatsApp folder there are 2 Folders
1) Databases
2) Media
I put in WhatsApp Folder
It did not work & I do not even see the Folder i created
I HOPE THIS WILL NOT MESS UP MY PHONE Please
Anyway, .nomedia is a file, not a folder!
The folder to put this file is sdcard/Whatsapp.
After adding this file, have you rebooted the phone?
You probably should also have to refresh the gallery database to purge the image caching:
go to Settings, Apps, Show system apps, find Media storage, open it, select the storage memory option and clear the data. Reboot the phone.
themissionimpossible said:
Anyway, .nomedia is a file, not a folder!
The folder to put this file is sdcard/Whatsapp.
After adding this file, have you rebooted the phone?
You probably should also have to refresh the gallery database to purge the image caching:
go to Settings, Apps, Show system apps, find Media storage, open it, select the storage memory option and clear the data. Reboot the phone.
Click to expand...
Click to collapse
I made a Folder & naming it .nomedia, i put it in WhatsApp Folder
After that what i did was Delete all Pics & Videos in WhatsApp folder
Now what has happened is,
I do not see any Folder of WhatsApp Pics/Videos when i go in the Gallery,
which is a Good thing :laugh: (rest Folder are there)
So now when i click the Album in Camera
i only see Pics i click with my camera & the Screenshots if i make any
So Thanks Bro somehow it worked for what i wanted
any suggestions do let me know
Can you upload the .nomedia file you were talking about
There are plenty of apps that let you select a directory and the app will add the .nomedia file for you.. just search nomedia in the play store.
ilordvader said:
Can you upload the .nomedia file you were talking about
Click to expand...
Click to collapse
The only way to upload on the forum this unusual file is to put it into a zip file.
Attached.
Hello everyone!
Does anyone know how to flick a setting so that pictures are saved as year-month-day-time or _1 _2 instead of time e.g. 202106_12132753 or 202106_1 202106_2 etc (second is actually preference). Even if I have to download a new picture gallery that can override the default one, how would I do it? Maybe a google gallery app. The screenshots work like this, why can't the normal cemera images be like that!?
I hate how it becomes DCIM_X because when you transfer your files off to store on the computer. It resets the DCIM and you end up with conflicting names on the second/third/forth transfer this is a UX flaw.
Question 2) I also want to make it so everything is saved as .png instead of ,jpg - how?