Commit Graph

1000 Commits

Author SHA1 Message Date
Suika 6ccc6f64ad
Docker update (#1477)
* Docker Client: alpine 3.18, heif, mpv and qtpy now native packages

* Docker Server: alpine 3.18, native twisted package

* Docker Client: Add service_identity and dateparser
2023-11-15 13:56:37 -06:00
Hydrus Network Developer 6e965be28b
Fix for directory move/copy
I was being stupid and not testing enough!
2023-11-11 12:59:39 -06:00
Hydrus Network Developer 118680fb95
Docker PySide6 revert
Fingers uncrossed
2023-11-08 16:05:28 -06:00
Hydrus Network Developer 75775a2e4d
Version 551 2023-11-08 15:42:59 -06:00
Paul Friederichsen 919c0ecacf
Add API endpoint for getting client options (#1460)
* Add API endpoint for getting client options

* Add "simple" options endpoint

* Remove simple options endpoint

* Move get_client_options to manage_database

* Add docs for get_client_options api
2023-11-04 15:06:09 -05:00
Paul Friederichsen 9dc8aeb263
Add toggle in options to disable thumbnail fade in (#1470) 2023-11-04 13:34:36 -05:00
Paul Friederichsen d3c8023242
Add generate_hashes API endpoint (#1467)
* Add generate_hashes API endpoint

It allows generating phash, pixel hash, and sha256 file hash for files not yet in hydrus

* At least give the sha256 hash of any file

* Tweak how temp_file_info is used

* Add check to ensure path is a file

* Add same isfile check to add_file

* Add docs for generate_hashes api

* Restore original handling of temp_file_info so temp file cleanup happens
2023-11-04 13:30:02 -05:00
Paul Friederichsen 7ed125ce63
Add VS Code settings.json (#1473) 2023-11-04 13:29:46 -05:00
Hydrus Network Developer 1f9b4ba892
Version 550
closes #1444, closes #1447, closes #1458
2023-11-01 16:38:03 -05:00
Hydrus Network Developer bd1348287d
v549 Faster Update 2023-10-25 16:32:20 -05:00
Hydrus Network Developer 18b9d0051f
Version 549 2023-10-25 16:23:53 -05:00
Hydrus Network Developer fc0127f0d7
Version 548
closes #1320, closes #1328
2023-10-18 15:31:50 -05:00
Alice Nyaa 26d1184a45
Added abort button on local import and url downloader pages (#1455)
* added abort button to the local import page

* added abort button to the url import page

* use RemoveFileSeedsByStatus instead of RemoveFileSeeds
2023-10-14 16:54:29 -05:00
Alice Nyaa f2292d17e0
fixed #1328, in what feels like a hacky way (#1456) 2023-10-14 16:42:30 -05:00
Alice Nyaa ad6ee2fd9b
Add call to expanduser for nocopy filestore path (#1457) 2023-10-14 14:40:59 -05:00
Valerii Malov 408ac2aaa5
Krita full preview support (#1454)
* Krita full preview support

Mark krita files as viewable
Use same data that's used for thumbnails to generate full preview

* Parse maindoc.xml instead of doing regex magic

This should fix getting dimensions wrong for some files

* Use direct PIL image loading for Krita thumbs

* Remove unused HydrusArchiveHandling.ReadSingleFileFromZip

* Update Krita in filetype docs

---------

Co-authored-by: Paul Friederichsen <floogulinc@gmail.com>
Co-authored-by: Hydrus Network Developer <hydrus.admin@gmail.com>
2023-10-14 14:29:49 -05:00
Paul Friederichsen 882eaa2147 Add epub and djvu to filetype docs 2023-10-11 19:38:46 -05:00
Hydrus Network Developer d8ff8bec6b
More efficient fix 2023-10-11 16:26:01 -05:00
Hydrus Network Developer e32ab3aa17
Fixing filetype scanning mistake 2023-10-11 16:20:32 -05:00
Hydrus Network Developer 766becf427
Version 547 2023-10-11 15:46:40 -05:00
Hydrus Network Developer 484e4f1c25
Merge branch 'master' into develop 2023-10-07 15:47:49 -05:00
Hydrus Network Developer 45ca3abd62
Fix pasting an image into system:similar to 2023-10-07 14:36:26 -05:00
Paul Friederichsen af135ece79
Add djvu file support (#1453)
* Reorganize header to mime stuff

* Fix changes to headers and mime stuff

* Add djvu file support

* Change function order in HydrusFileHandling

* Fix some spacing
2023-10-07 14:14:35 -05:00
Hydrus Network Developer 343e12a94d
Version 546
closes #1448
2023-10-04 15:51:17 -05:00
Paul Friederichsen 59b01d7106
Fix colors for PSDs (#1449)
* Fix colors for PSDs

`HydrusImageHandling.DequantizeNumPyImage` should only be applied to images that are BGR (eg those directly from opencv). PIL produces RGB images already so this was inverting the colors on PSD thumbnails. Instead we use `HydrusImageHandling.DequantizePILImage` to handle edge cases.

* Dequantize the PSD PIL image before resizing
2023-09-30 13:36:15 -05:00
Hydrus Network Developer b4afedb617
Version 545
closes #394
2023-09-27 16:12:55 -05:00
Paul Friederichsen c79355fcc5
Add support for EPUB files (#1439)
* Add support for EPUB files

Also generalize open document zip mime detection

* Fix exception handling in MimeFromOpenDocument
2023-09-23 14:21:26 -05:00
Paul Friederichsen f8ffeb9074
Fix GetEXIFDict for MPO files (#1442) 2023-09-23 14:16:12 -05:00
Paul Friederichsen 850a8c452e
Add blurhash (#1443)
* Start on blurhash

* More blurhash db stuff

* Refactor GenerateThumbnailBytes to add GenerateThumbnailNumPy

* Add blurhash gen to import

* Add blurhashes to db

* Add blurhash to file metadata api

* Add API docs for blurhash

* Make sure we regen blurhash after thumb regen
2023-09-23 14:13:21 -05:00
Hydrus Network Developer 428372fb57
Version 544
closes #1435
2023-09-20 14:58:17 -05:00
Paul Friederichsen 2b549b84f9
Add /get_files/render API to render static images (#1437)
* Add /get_files/render API to render static images

* Cleanup and increase cache time for render

* Add docs for render endpoint
2023-09-16 15:21:22 -05:00
Paul Friederichsen 1018be505f
Split psd-tools code into separate file to fix issue with using types (#1436) 2023-09-16 13:14:03 -05:00
Hydrus Network Developer b5e011f223
Fix for Mr Bones API request 2023-09-13 15:38:31 -05:00
Hydrus Network Developer b840d0778c
Version 543 quick fix
Pumping the brakes on this call, which is dumping out regularly IRL
2023-09-13 14:05:57 -05:00
Hydrus Network Developer 5aaeecefd3
Quick bit of testing 2023-09-13 13:48:24 -05:00
Hydrus Network Developer cc964e7369
Version 543 2023-09-13 13:26:31 -05:00
Paul Friederichsen 6098eaf282
Improve PSD handling and reduce memory usage (#1434)
* Implement our own PSD to PIL conversion

Without inefficient remove_white_background step.

* Stop trying to load PSDs directly with PIL

* Formatting

* Remove unused imports
2023-09-09 14:39:09 -05:00
Hydrus Network Developer f538a155d9
Little logspam fix
Fingers crossed it is just logspam
2023-09-06 17:13:54 -05:00
Hydrus Network Developer 7d63c5d90c
PDF non-PySide6 fixes 2023-09-06 15:10:46 -05:00
Hydrus Network Developer 45f0968f17
Version 542 2023-09-06 14:49:46 -05:00
Hydrus Network Developer 54c2cd34e8
Some env stuff 2023-09-05 15:01:54 -05:00
Paul Friederichsen 8360fcc527
Add thumbnails for PDFs (#1421)
* Add thumbnails for PDFs

* Update HydrusPDFHandling.py

* Handle password protected and otherwise unsupported PDFs

* Fix DPI calculation

* Use new exception for encrypted PDFs

* Formatting

* Update filetype docs

* Add notes about PDF handling to filetypes doc

* Handle scale to fill thumbnails for PDFs, ROUND THE RESOLUTION
2023-09-02 14:36:17 -05:00
Hydrus Network Developer 368309645f
Handling previously damaged databases 2023-08-30 16:00:53 -05:00
Hydrus Network Developer 5826eb2720
I'm winning Dad 2023-08-30 13:48:35 -05:00
Paul Friederichsen 84d7e72d38
Docs update: new filetype list, search on local help, other corrections (#1430)
* Fix typo in running from source

* Add new page listing filetypes

* Add a return

* Enable searching docs when offline

* Add last updated date to docs pages and edit buttons when hosted

* Add mkdocs-git-revision-date-localized-plugin plugin to gh actions

* Correction

* Update publish_docs gh actions

* Exclude index.md from last update dates

* flv files are actually viewable in hydrus

* Add note about how Hydrus determines filetypes
2023-08-30 11:28:38 -05:00
Paul Friederichsen 3125a04518
Improve handling of weird PSDs and log psd-tool errors (#1429)
Hydrus now always uses the PSD resolution fallback when psd-tools fails to open a PSD instead of just when psd-tools isn't available. Also when the fallback is used for either PSD resolution or PSD thumbnail generation it is logged.
2023-08-30 11:27:55 -05:00
Hydrus Network Developer e47a007a01
Version 541 2023-08-30 11:25:24 -05:00
Paul Friederichsen 785e37345f
Add support for procreate file format (#1425)
* Add function to get zip as Path and use it to avoid temp file for krita

* Add support for procreate format
2023-08-26 14:05:45 -05:00
Paul Friederichsen a46d6f1790
Add QOI format support (#1426)
* Add QOI format support

* Bump required Pillow version to 9.5.0
2023-08-26 13:59:54 -05:00
Paul Friederichsen e6ecd1f6fc
Add basic `/add_tags/get_siblings_and_parents` api endpoint (#1428)
* Add basic /add_tags/get_siblings_and_parents api endpoint

* Remove prints

* Remove unneeded job_key from sibling and parents api
2023-08-26 13:56:28 -05:00