[ 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

8chan Bitcoin address: 1NpQaXqmCBji6gfX8UgaQEmEstvVY7U32C
The next generation of Infinity is here (discussion) (contribute)
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/

 No.961

Quick question: is it possible, via a command in a Python program, to open an image in the copy of Hydrus that is already running on my computer? Hydrus is not the default image handling app, and even if it was I believe calling it via os.startfile() would still launch a new process of Hydrus.

 No.966

File: 1437935766259.jpg (855.93 KB, 1158x2040, 193:340, b99460535a38a4bed3d4021346….jpg)

This is not currently possible. The image viewer is closely linked to the hydrus database, so it can only load images that have been imported. I assume you are trying to open a picture that is outside the db, right?

I have considered writing a separate media_viewer.exe program that'll work like ACDSee's quick viewer and browse folders like any other image viewer. You could set it to be the default viewer for jpgs or whatever, and I could even add checkboxes for that in the Windows installer. It would be a bit of work, but not very difficult as the complicated media code is already written. There would be no tags or ratings, but it would otherwise look just like the media viewer. Would you be interested in something like that?

I can also add some command switches to do importing from command line, if that is what you are looking for.


 No.967

So, the image I'm trying to load would be already in Hydrus, but I'd be working from a copy of it that is in an export folder. However, I do have the hash already stored as an attribute in the code (extracted from the export folder filename) and could easily use it in a call.

My usual method of opening an image in Hydrus that isn't comprehensively tagged enough to search for, but that I have the file for, is to simply drag it in and reimport, which is why I phrased it that way.

The goal here is to be able to give my slideshow application an "open in Hydrus" button that pulls up a Hydrus GUI session (not necessarily the image viewer, though that would be a useful toggle option) with only that image loaded, and which does not launch a new instance of Hydrus if one's already open.


 No.970

File: 1438105422643.jpg (133.16 KB, 800x610, 80:61, fe5a6653c65b22246b388eb9f5….jpg)

>>967

This is an interesting thought. I am planning to de-wxify the server over the next few weeks, which will include adding some command switches to control server behaviour from the command line (which will probably end up sending POST requests to the original instance's local http server). I will look at adding similar command line support for the client to enable this. Something like:

client.exe -show hash=abcdef…

client.exe -import path=C:\blah\blah.jpg

And have accompanying POST queries in the local server to do this as well. You'll be able to do what you want either way.




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