[ home / board list / faq / random / create / bans / search / manage / irc ] [ ]

/hydrus/ - Hydrus Network

Bug reports, feature requests, and other discussion for the hydrus network.

Catalog

Name
Email
Subject
Comment *
File
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Embed
(replaces files and can be used instead)
Options
Password (For file and post deletion.)

Allowed file types:jpg, jpeg, gif, png, webm, mp4, swf, pdf
Max filesize is 8 MB.
Max image dimensions are 10000 x 10000.
You may upload 5 per post.


New user? Start here ---> http://hydrusnetwork.github.io/hydrus/

Currently prioritising: simple IPFS plugin


File: 1455987666683.jpg (10.84 KB, 568x404, 142:101, Bahelit_Awakes.jpg)

 No.2062

Hey guys.

I'm going straight into it.

I've got 3.367 gif files above 5MB, amounting to 44GB. I can lower that to half or even less, just need a way to automate the tag transportation.

The fastest way I thought about was:

1) Export all gif files

2) Name all files with their respective tags

3) Batch convert everything to webm

4) Import everything back into Hydrus using a regex

I have everything sorted out except, you guessed it, 2). Just too many characters for Windows limits, therefore Hydrus won't export them.

The alternative is exporting all files with their hashes for file names and their tags inside txts, convert everything then manually add all tags back in!

I got to 24 files deep, before going insane.

Anyone has any ideas?

 No.2065

File: 1455996547295.png (2.67 MB, 1536x1750, 768:875, e97c54413c4012786d855110f7….png)

Although I have plans to make it easier, there aren't a lot of ways to mass import tags right now.

Also, when I add 'this file looks like this file–should they have the same tags?' to the program, your specific problem may be fixed in general.

Until then, I think you will have to use a script of some sort, and unless you want to get very complicated, you'll want to use python, so you can create a 'hydrus tag archive' using my code, which would let you import all the tags for the new files. I would do:

Create empty HTA

Export all files with tags in .txt files.

For each ( file, text_file ):

convert file to webm/mp4

figure out sha256 hash of new file

submit ( hash -> tags ) to HTA

Then manually import all those new files, and manually import the HTA to whatever tag service you want.

If you have experience with python or other general programming, I can walk you through it. It wouldn't be more than ten or twenty lines of code. But if you have no experience with programming at all, it might be more difficult.

In fact, now I think of it, I'll look into adding a checkbox to the import workflow that says 'import tags from a [filename].txt if one exists'. Since I added it for the export, I might as well allow the opposite. I might not have time for it this week, but it won't be too difficult.


 No.2067

I can't code but I'm not a computer illiterate (guess all users of Hydrus aren't the average PC users) so if you're willing to teach me, I'm willing to learn. If you give me a general guideline I might be able to Google my way through it.

The 'import tags from a *.txt' checkbox would erase the problem altogether.


 No.2085

File: 1456112414742.png (41.75 KB, 911x561, 911:561, 16-02-22_14-36-46-Windows_….png)

>>2062

>2) Name all files with their respective tags

don't do this

Even though we implemented the txt file here

>1041

I'm still yet to get it working through batch/powershell

however, if the tags aren't enough to overflow the filename boundary, this scipt we created, initally just for exif tags, can easily be repurposed into an ffmpeg script


 No.2095

File: 1456260723002.png (188.89 KB, 500x501, 500:501, 5297c4f4ca8c9de939efac892b….png)

>>2067

Right, I've done this for tomorrow. You'll have to mass-rename your txt files from [hash].gif.txt to [hash].webm.txt or whatever, but otherwise, the 'add tags based on path' dialog now has a checkbox that'll try to parse tags from these neighbouring txt files. Let me know if it doesn't work for you.

If you don't have a mass renamer, I like Batch Renamer:

https://sourceforge.net/projects/batchrenamer/


 No.2163

>>2095

Thanks, works wonders. I use Bulk Rename Utility myself.




[Return][Go to top][Catalog][Post a Reply]
Delete Post [ ]
[]
[ home / board list / faq / random / create / bans / search / manage / irc ] [ ]