yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Haldi4803:
[MENTION=4905624]j to the 4n[/MENTION]

Something went terribly wrong!

It's broken.

P.S while the log is named via date in the app itself it's numerical in the filename. Was easier to program this way right?
[Android Apps and Games] j to the 4n:
what is broken?

I have no issues in my side, mhhh. Can you join: https://hangouts.google.com/group/nqh8vbvmZrns5yMA3
[Android Apps and Games] j to the 4n:
No idea what is wrong, added one additional debug line to the log, to get the mime type.
[Android Apps and Games] Haldi4803:
Dafuq....

File format not supported: DSC_0542.JPG mimeType: text/html

Start batch renaming
Using format: yyyyddMM_HHmmss
Files to process: 12
File format not supported: DSC_0001.JPG mimeType: text/html
File format not supported: DSC_0537.JPG mimeType: text/html
File format not supported: DSC_0538.JPG mimeType: text/html
File format not supported: DSC_0542.JPG mimeType: text/html
File format not supported: DSC_0543.JPG mimeType: text/html
File format not supported: DSC_0544.JPG mimeType: text/html
File format not supported: DSC_0545.JPG mimeType: text/html
File format not supported: DSC_0546.JPG mimeType: text/html
File format not supported: DSC_0547.JPG mimeType: text/html
File format not supported: DSC_0548.JPG mimeType: text/html
File format not supported: DSC_0549.JPG mimeType: text/html
File format not supported: DSC_0550.JPG mimeType: text/html
Files renamed:0
Files skipped:12
Errors:0
[Android Apps and Games] j to the 4n:
Not sure what is wrong with your device/images now.

It works for my testers and it also works on a stock Pixel device in an emulator
[Android Apps and Games] j to the 4n:
Can you send me one of those images?
[Android Apps and Games] j to the 4n:
..and about the naming for the logs.

If you may have noticed there are just max 10 logs.

That is achieved by using a number for the logs from 1-10...and when it reached 10, I start from 1 again.

That way old logs get overwritten and there are always maximum 10 logs. So there won't endless amount of logs after some time.

On the premium version you can enable a service that will rename/move new images on the fly automatically, so each time a picture is taken a log is generated.
[Android Apps and Games] j to the 4n:
And how did you select it that it got messed up? The Path needs to be selected by the files app that returns a Tree Uri.
[Android Apps and Games] j to the 4n:
16. June ◦ Picture Manager 1.6.0

• Fixed force closes when the service runs

• Fixed progress freezing on Android 5.0 when starting a batch process

• Fixed progress freezing when selected folder has no files

• Fixed rating dialog popping up instead of wizard on first start

• Notification with progressbar shows now during a batch process. Can help that the app is not getting killed by the OS

• Added service trigger delay setting

• Added notification setting

• Logs can be opened now with an external viewer.
[Android Apps and Games] Haldi4803:
https://youtu.be/TOUiBmM23Iw

Edit... i just see i should have activated touch input circles... hard to see what i'm doing like this ~.~
[Android Apps and Games] j to the 4n:
Yeah, I have no idea :D.

If you can tell me, I can check if the path contains "storage/..." and if telling the user in an dialog how to do it right.
[Android Apps and Games] Haldi4803:
Yes it does. You can see the full path In the two screenshots above.

I have the Sony file manager which comes preinstalled that does look kinda similar to the aosp one.

When I select a folder inside the Downloads it's gives an error because it's storage/emulated/0/download/...

But when I select internal memory and then downloads it takes the working Download/..... folder.
[Android Apps and Games] j to the 4n:
Yeah, saw that. Just told you what I'm doing to do to prevent it, by checking if "/storage" is in the selected path and then telling the user how to select it correctly.

Ah, I see. Think I can give a warning when someone is doing that.
[Android Apps and Games] j to the 4n:
1.6.4 released

• Fixed wizard never showing for anyone

• Fixed crash after reboot and updating app

• Fixed force closes when the service runs

• Improved some dialogs handling

• Fixed progress freezing on Android 5.0 when starting a batch process

• Fixed progress freezing when selected folder has no files

• Fixed rating dialog popping up instead of wizard on first start

• Notification with progressbar shows now during a batch process. Can help that the app is not getting killed by the OS

• Added service trigger delay setting

• Added notification setting

• Logs can be opened now with an external viewer.

If anyone wants to help with translations, let me know.
[Android Apps and Games] j to the 4n:
1.6.8 released to playstore

• Fixed tasker plugin not working at all

• Fixed progress not showing

• Added additional organizer format YYYYMMdd (one folder level)

• Added "Scan subfolders" Checkbox to batch processes

• Added info button to service sections. Explains how the folder needs to be set, so that new images are getting processed

• UI Cleanups
[Android Apps and Games] p50kombi:
Is this 1.6.7 in play store from earlier this morning?

If so, tasker plugin still doesn't work for me.

Or is this a version that's not up yet? :)
[Android Apps and Games] j to the 4n:
It always takes a few minutes till it is available in all areas.

Attaching it here for you.
[Android Apps and Games] Haldi4803:
Had an issue today.

I've uninstalled the app last week. Reinstalled today and renamed my 3000 pictures.

Clicked on the log.

The log was from a previous run days ago and said "successfully renamed 13 files" which was obviously wrong.

Clicking delete logs did not help...I've just checked it again.

All files in the folder were correctly renamed while this log is totally unrelated to the things that just happened.
[Android Apps and Games] j to the 4n:
The logs get saved to /data/data/eu.duong.picturemanager/files/logs.

WHen you uninstall the app, that folder should get deleted too. That is nothing I have control about.

every app you install creates a folder in /data/data/packagename...and it should get deleted once you uninstall.

Also the settings, called shared prefences are saved in that data folder.

Can't explain why, but the uninstallation got messed up and this is out of my hands.
[Android Apps and Games] Tirofog:
Thanks for a very useful app. Although the renaming is successful in my file explorer and google photos, it's not sticking in the HTC gallery app on Viper 10 6.0.0 even after clearing data, rescan etc. No big deal, I can live with it, just thought I'd bring it to your attention.
[Android Apps and Games] j to the 4n:
Yeah, no idea what and how HTC is doing there.

Fell for it when I started developing the app and wondered why the image name didn't change, which I checked also with HTC Gallery at first.

What data you cleared? HTC Gallery? Tried the media scan option in the app?

I also tried to stick with the HTC Gallery App as long as possible, because I liked it. But like a bunch of other HTC Apps and some more in the future, probably the brand in general, they get discontinued.

Probably time to switch to Google Photos.
[Android Apps and Games] Tirofog:
Cleared data in the gallery app, even went as far as deleting it in priv-app and reinstalling but no go. Same, I like the stock app so will keep it and google photos.. cheers.
[Android Apps and Games] phillsdaman:
Issues

Hi i have just found your app which something i have needed for a while.

Its an awsome app but im just having a bit of trouble with it.

Is there a limit to the amount of picture it moves into folders?

When i start it off to make folders of year and month it starts and it runs at about 1 picture every 2 seconds so i just leave it run for a few hours. When i go back to it the notifcation is still there but the bar is not moving anymore. If i go to a file manager i can see it has stopped moving photos. And i cant close the notification to start it again without restarting the phone.i have 32gb of pics and videos. The app renamed them all no problem.

I have a samsung s8 plus.

A feature that would be good also is to change the folder that the date foldes save to as once its moved the photos into date folders, google photos then thinks theres more photos to upload to the cloud.

It would be nice if the photos could be saved to an on the go memory stick or hard drive.

Thanks
[Android Apps and Games] j to the 4n:
That's a lot of photos (:.

DId you whitelisted the app from battery optimization?

Checked the logs if there might be a hint why it stops?

I have about 3 GB pics and it takes about 3 minutes.

Do you leave your display on while executing?

In the new version there is a way to define different output folders. If you want you can join here Join the conversation on Hangouts: https://hangouts.google.com/group/mFkuCF235G3eL4mJ3

to get a pre-release version.

I upload my pictures to Amazon photos. Never had the issue that my pictures get uploaded multiple times. Pretty sure it saves a hash somewhere of already uploaded photos and won't upload them again of moved...while debugging I ran the organizer a hundred times I bet. Would be bad if I had that many duplicates on my Amazon photos account.
[Android Apps and Games] j to the 4n:
Version 1.8.0 released to playstore

• Ignore folders with .nomedia file

• Added option to add exif date metadata on pictures not having it

• Empty folders created by google camera burst/portrait mode will get deleted now

• Added option to select custom destination paths per folder

• - Works across sdcards (internal<>external)

• Fixed tasker plugin always starting the organization task, instead of the renaming task

• Properly name new images with same EXIF date with an incrementing suffix
[Android Apps and Games] j to the 4n:
Version 1.9.0 released to playstore

• Added option to add device model and location (city, admin area, country) to renamer

• Added option to add location (city, admin area, country) to organizer

• Fixed force EXIF Date not saving

• Improved timerstamper service performance if files are not moved by organizer afterwards.
[Android Apps and Games] p50kombi:
Latest pstore version keeps crashing.

Can't even get into the app ;)
[Android Apps and Games] j to the 4n:
Sry, was out with son.

Fixed it an uploaded the new version.
[Android Apps and Games] j to the 4n:
1.10.2 in playstore

• Allow dot in the custom timestamper format

• Fixed missing seperator when appending location data to folders

=> Run a manual "Batch Organize" with subfolders to fix folders without seperator

• Added possibility ro revert organizer changes. Moves back all images to defined folder.

• Fixed organizer not working if no metadata is set.
[Android Apps and Games] j to the 4n:
Enjoy (-:
[Android Apps and Games] j to the 4n:
1.11.1 in playstore

• Use EXIF Attribute TAG_DATETIME_ORIGINAL if set on API >=24. Fixes the timestamping on some devices after editing photos with an image editor.

• Fixed Organizer folders having an "_" at the end. Rerun the batch process with subfolders to fix it.

• If you have any suggestions to improve the app, or want to help me to transalte the app into more languages, then let me know via mail!
[Android Apps and Games] xviiarcano:
Burst shots numbering suggestion

Great app, provides a workaround for a silly policy of the olympus image share app that renames the files on import... With progressive numbers that are recycled every time a file is removed (and restart from 1 if the folder is emptied) imagine the mess... I even lost some picture for overwriting mistakes.

Can i suggest a change for images with the same timestamp (results of a burst shot)?

To obviate to the resulting identical filenames, now you append _1, _1_2, _1_2_3 and so on... File names potentially get long fast.

It would be nice to have _01, _02, _03 etc.

This way the file names would remain of about the same lenght.

It is no big deal but since the whole point is keeping things nice and tidy...
[Android Apps and Games] j to the 4n:
Hey, that behavior is not intended.

Will take a look and fix it asap.
[Android Apps and Games] j to the 4n:
Fixed it. Uploading to the playstore now.

You can run a batch renaming to fix them. Ensure you include subfolders, incase you use the organizer too.
[Android Apps and Games] xviiarcano:
Wow, that was fast! :)

I'll test it as soon as I get the update and report any issue, Thanks a lot!
[Android Apps and Games] j to the 4n:
You are welcome.

Member since 2014 and the first two posts in my thread. I feel honored :D
[Android Apps and Games] xviiarcano:
Darn, I must report another oddity.

This time I think it may have to do with my phone (xiaomi mi a1) but maybe you can figure out what happens.

I rename a photo with the app, and it is indeed renamed.

However, if from the gallery (simple gallery by simple mobile tools) I "share" it to Snapseed for editing, when I save it Snapseed reverts to the old filename.

Same thing happens if I pass it from google photos to snapseed.

If I pass it from the stock file browser to snapseed, it keeps the correct new file name instead.

If I open the photo directly in snapseed it is also ok.

I tried both running a media rescan and rebooting the whole phone but nothing changes...

My guess is that the old filename must survive somewhere in the metadata and depending on which "route" the photo takes this old file name is used or not... But I know nothing of code (and little of metadata), so it is just my wild two cents.
[Android Apps and Games] j to the 4n:
Run the media scanner on the settings tab and check if that fixes it. If it does there is also an option to run it everytime you take a picture.
[Android Apps and Games] xviiarcano:
I tried the media scanner but the result is the same.

Now I am trying to write at the devs of simple gallery in case it depends on their app, maybe they can shed some light in it, but the fact that google photos does the same makes me doubt.
[Android Apps and Games] j to the 4n:
The filename is cached in the mediastore, the filename is definitely changed. You can see that with any file explorer.

Running the media scanner should actually refresh the mediastore and its filenames.
[Android Apps and Games] xviiarcano:
Yes the filename is changed, I see this both in the gallery and in the file manager, but for reasons beyond my understanding snapseed does not get the correct name when the image is "shared" to it.

Media rescanning does not solve the issue, I tried both in Picture Manager and installing another dedicated app.

However copying the photo works, the new copy does not "inherit" the weird behavior, this gave me an idea.

If I run an organize after the renaming, then the files in the newly created subfolder are no longer affected.

Out of curiosity I ran a "revert" too, and they stay correct, even after being returned to the original folder

This points indeed to some misbehavior of a system "catalog". If it was an inherent problem of the photos, it would remain even if they are moved around.

But then, I wonder why the media rescan does not solve the issue...
[Android Apps and Games] Ollfried:
Great App. Just noticed it and checking its possibilities.

As a suggestion you might consider adding zeros as a prefix on burst shots.

Currently you rename it to

_1, _2 ... _10

It would be great to have at least two leading zeros.

_001, _002 ... _010,_100

Depending on the used file manager it ends up in weird sorting if no leading zeros are used.
[Android Apps and Games] j to the 4n:
Thx for the feedback. Aren't they named with the counter in brackets like filename (1) etc?

I don't control the renaming part currently if the timestamps are the same, that's how android name's them if a file already exists.

I'll check and do it myself (again), do the naming is more consistent.
[Android Apps and Games] j to the 4n:
Check out that version and if that is what you want: https://www.dropbox.com/s/rgow6ke7d0s7pnb/app-release.apk?dl=0
[Android Apps and Games] Ollfried:
Awesome. That was fast.

Indeed I was wrong you already used () but the prefix 00 are more friendly for sorting.

Nevertheless you seem to miss the first file. Please have look in the attached log.
[Android Apps and Games] j to the 4n:
When I rename the first image I don't know if the next image has the same timestamp.

I generate the filename and then check if it already exists, then append the counter.

For the 1st image the new generated filename is the only one, so I don't append a counter, since I don't have the information here if there are more images with the filename

For the 2nd image the generated filename already exists, that is where I can start appending a counter.

Else I would need to go back to the previous image and rename that to _001 and the second to _002....

That would be possible, but what happens with the 3rd image? It checks if the filename with the timestamp exists and that wouldnt be the case, because there are now just the images with _001 and _002.

So it would just get the timestamp without counter appended

Now the 4th image would be renamed to _003 though :D

Sounds complicated, lol.

Would need to put all images with a key/value pair into a map (thinking aloud) to have the correct information of all previous images..that could work.

Let me see if it works out.
[Android Apps and Games] Ollfried:
Fully understood and if I would have thought about it I wouldn't have complained. Nevertheless great tool and first of all I need to donate to try out all other features. Can I directly donate using PayPal instead of the donate button? Donating in Euro is more convenient.
[Android Apps and Games] j to the 4n:
Think I got it: https://www.dropbox.com/s/rgow6ke7d0s7pnb/app-release.apk?dl=0

Edit: NVM, works just the 1st time, running it a second time breaks the naming again...investigating.

yeah, you can directly paypal me if you want: https://www.paypal.me/janduong

Add your activation code (left sidebar menu > Get premium) as note, then I'll send you a premium code back.
[Android Apps and Games] Ollfried:
Thanks for the affort. I tested it once and didn't noticed a changed behaviour. Log attached.
[Android Apps and Games] j to the 4n:
Yeah, as said nvm. It just works the first time, at least for me. couldnt figure out a proper way to do it atm. Will keep trying, sry.
[Android Apps and Games] j to the 4n:
1.13.0 in playstore

Additions and fixes:

• Option to select upper/lower case file extension

• Choose different separators for metadata appended strings

• Custom destination paths can be edited now

• Fixed images being not white in dark mode.
[Android Apps and Games] j to the 4n:
1.14.0 available in playstore.

Changes

• Added Spanish translations (google translated)

• Fixed some pictures are not getting renamed (Found on a samsung device, where selfies would save the Exif Date in a different format: yyyy-MM-dd HH:mm:ss instead of yyyy:MM:dd HH:mm:ss)

If you have any idea you want to be implemented, or want to help with translations, let me know.
[Android Apps and Games] Ollfried:
Hello, would it be possible to add the following additional format string into the "Organizer" for folders?

Year-Month-Day e.g. 2019-01-03

Or much better make add custom setting as in the "Renamer".

Thanks a lot.
[Android Apps and Games] j to the 4n:
Can do, adding a custom setting would be quite some work though.
[Android Apps and Games] Ollfried:
That's fine I would be happy with a daily folder. :good:
[Android Apps and Games] j to the 4n:
Will try to add it today.
[Android Apps and Games] j to the 4n:
Sorry, didn't find time last night.

Some dragons appeared and I had to kill them.

Here check that out if that is want you want: https://www.dropbox.com/s/4vn29peupueax4d/app-release.apk?dl=0

Will publish it to the playstore if it is.
[Android Apps and Games] Ollfried:
Many thanks! :good:

I will test it and reply back. A quick check looks promising however one file in the quick test wasn't moved. I will check if it is reproducable.
[Android Apps and Games] Ollfried:
I tested it with >300 files and it worked as expected. Thanks a lot for your effort.

I noticed only two issues.

Processed pictures without a full Exif data (e.g. received by WhatsApp) are not processed.

Video files are not processed.

The WhatsApp pictures have been previously tagged with Exif date attribute using the "Exif Metadata" option of your tool. The video files don't have Exif data and therefore can't be sorted which I assume is not an issue by your tool. Maybe you can evaluate if pictures not created on the mobile device can be handled too. I attached a log file for your analysis.
[Android Apps and Games] j to the 4n:
Video files recorded on the phone (mp4) should be able to be sorted.

EXIF is not required, but I can read some meta data with another interface.

I have no issues with them on my device (HTC U11) and I have no other reports so far where it does not work.

Will check if the force exif meta data still works.

Edit: It does for me, the set metadata is still there after running it again.
[Android Apps and Games] protechtedd:
Thank you for posting this apk! I found your app on Play earlier, and test/compared it with other apps and found it to be the best for my needs. I was really wanting a Year-Month-Day option, came to XDA, and found your post. (great coincidence).

This works for me for now, but would it be possible to add a "Custom" option on the Organizing tab like you have on the Renaming tab? This way we'd have access to the entire imagination.

An app I used in the past, but is broken now, is called "Media Renamer" which has this feature.
[Android Apps and Games] j to the 4n:
If the custom format would be on single level it would be easy. If you want to apply different formats on several levels (subfolders) it'll be a bit harder.

Would single level suffice for you?
[Android Apps and Games] protechtedd:
I would say yes Single should work, but idea: Would it be possible to do a different single custom per folder?

For instance, if I want my DCIM/Camera folder to be something like "Year-Month-Day-GPS" (for example), but then also have a different custom set for "Pictures/Messenger" (photos taken with FB messenger for example, which let's say do not have GPS EXIF) to be put into some other customize folder. If that's an option, that would be a killer feature for your app! I frequently take photos with multiple apps and they end up in different folders for each app, but I'd like to consolidate them down to different purposes.
[Android Apps and Games] j to the 4n:
If no GPS EXIF data is available, nothing will be appended to the filename.

Multiple destination folders are already a thing. It is at the very bottom of the organizer tab.

You can join the hnagouts here for preview/beta versions: https://hangouts.google.com/group/wnPcQmju5P0qB8Wi2
[Android Apps and Games] protechtedd:
Okay, so the GPS was just an example. I took a screenshot from Media Renamer and wrote just an example string. Here, I used yyyy-mm-dd as the base folder, then the string creates a sub folder with any other fixed text, or I could have created an hour folder under the day folder, or even added hour to the top level folder. The possibilities are much greater when you have the ability to write custom strings for organizing, rather than being restricted to a few premade choices.

If we can have the ability to (at the least) create sub-folders, add fixed text, and then beyond that perhaps even EXIF, Tags, etc, that would be killer!
[Android Apps and Games] j to the 4n:
The way my code is designed atm, implementing a complete custom format for organizing with unlimeted levels will take quite some time.

Will take a look though. probably need to limited the folder levels to a fixed amount, three would be easiest for me.
[Android Apps and Games] protechtedd:
Wow, that was a fast response! And what I see in your screenshot looks to be exactly what I was asking for :D limit 3 levels shouldn't be a problem whatsoever to my needs
[Android Apps and Games] j to the 4n:
Can you join the hangout, so you can test it?
[Android Apps and Games] protechtedd:
I try to avoid Google products as much as possible, can you share it here on xda to me?