Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] When sending automatically to hydrus is it intelligent? #24

Open
talianagisan opened this issue Feb 2, 2023 · 9 comments
Open

Comments

@talianagisan
Copy link

talianagisan commented Feb 2, 2023

So I have ALOT of pics i need to have tagged and etc. I see i can automatically send files to hydrus once searched but is it intelligent?

Will it send just the tags when the image in hydrus is bigger than the one Hatate found, or if the image Hatate found is bigger will it auto download it instead of sending just the tags?

Or is it dumb and only say downloads or only sends just tags and doesn't do what fits best in the situation?

@nostrenz
Copy link
Owner

nostrenz commented Feb 7, 2023

Right now, the "Automatically send..." setting simply imports the image (and its tags) in Hydrus. It never sends the URL for downloading.

There is a simple system for determining if the found image seems better than the one imported into Hatate, but it's only used to color the rows (yellow: remote image seems better than the local one, green: remote image doesn't seem to be better). Then it's up to the user to decide what to do with each image: import the local file and its tags into Hydrus, or send the URL and let Hydrus download the remote image.

Maybe I could change how the "Automatically send..." setting works, instead of just a checkbox it could be a choice between various options like "Always import local image", "Always send URL to Hydrus", or "Import local image or send URL depending on the row's color", someting like that.

@talianagisan
Copy link
Author

That would be a nice feature the "Import local image or send URL depending on the row's color". Could make it so the user specifies what it does on each color so it's more modular and nobody has repeats of this asking for specific features

The color system you use is great right now its just when you have 400k plus pics to have hatate deal with it kind of gets tiring spending a few hours a day whittling it down.

@nostrenz
Copy link
Owner

I've started to work on this, there will be a new setting window allowing to define the conditions under which a search result is considered as a valid match (green rows) and another one for the conditions under which a valid match is considered better than the local image (yellow rows). Along with the ability to select what's automatically sent to Hydrus, this should cover most use cases I think.

@talianagisan
Copy link
Author

I've started to work on this, there will be a new setting window allowing to define the conditions under which a search result is considered as a valid match (green rows) and another one for the conditions under which a valid match is considered better than the local image (yellow rows). Along with the ability to select what's automatically sent to Hydrus, this should cover most use cases I think.

Thank you for doing this. Cant wait to see the results.

@talianagisan
Copy link
Author

Now I'm confused alittle. It doesn't seem to have an option to import the url if the image is bigger and if the image is smaller import just the tags.

  1. Import URL if remote image is better, otherwise do nothing
  2. Import URL if remote image is better, otherwise import local image file

The first one to me reads like it skips doing literally anything if its not better. The 2nd one reads that it reimports the local image and does 0 tag grabbing.

This could also be a case of it needing to be re worded or I am dumb.

@nostrenz
Copy link
Owner

nostrenz commented Feb 28, 2023

The 2nd option indeed reimports the local image file, including its tags. Even if the local image is already from Hydrus (because you drag-and-dropped it from Hydrus into Hatate, or you used the "Hydrus query" window), the local image will still be re-imported but since it's the exact same file, in the ends it will just update its tags.

@talianagisan
Copy link
Author

So which option would I choose to tag the picture no matter what, but download the url if its better quality?

@nostrenz
Copy link
Owner

nostrenz commented Mar 20, 2023

The last option ("Import URL if remote image is better, otherwise import local image file") seems like the best choice:

  • If the remote image is better according to the defined rules, its URL will be send to Hydrus which will download the file and retrive its tags
  • If the local image file is better, it will be imported into Hydrus along with the tags found by parsing the booru page (if the "Parse booru page to retrieve tags" checkbox is checked in the main Hatate settingd window).

Sorry for the late reply, I know this system is not perfect but I'll see what I can do if there's a use case not covered by it.

@talianagisan
Copy link
Author

Oh you're perfectly fine. The speed you worked after I made my post was impressive enough. Thank you for this feature and clarifying for my dumb mind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants