Commit Graph

1077 Commits

Author SHA1 Message Date
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
Hydrus Network Developer 6793dbdb1b
Merge pull request #1427 from Zweibach/updating-docs
Updating docs
2023-08-26 13:06:32 -05:00
Zweibach 7d77973038 I deleted the paragraph this belonged to since it was part of the bit that claimed parents were actually added. 2023-08-25 19:15:59 +02:00
Zweibach 25fc9a1317 New sibling and parent examples. 2023-08-25 19:15:12 +02:00
Zweibach 80a7ad2c89 New rating examples. Sure has changed a lot. 2023-08-25 19:14:48 +02:00
Zweibach a9d4478da7 New manage and search examples. 2023-08-25 19:14:16 +02:00
Zweibach a2bf7f778d Apparently some people get scared when the example on the page doesn't perfectly match what's in the client? 2023-08-25 19:13:50 +02:00
Zweibach 956af6bc8f Dupe merge now has more options than when the previus example was made. 2023-08-25 19:13:10 +02:00
Zweibach 942496b26e I'm sure there's something out there whackier than Pokemon to dethrone it. 2023-08-25 19:12:44 +02:00
Zweibach 42873ecb20 THe new import options dialogue. 2023-08-25 19:12:13 +02:00
Zweibach 62ba265305 These just use import options now. 2023-08-25 19:11:29 +02:00
Zweibach da65a81177 Manage tags dialogue has changed a fair deal since the Sororitas examples were made. First thing that came to mind when fixing up stuff was Genshin Impact on safebooru so the new examples are mostly that. 2023-08-25 19:10:21 +02:00
Zweibach 02815837ff Updated directions for rating services. 2023-08-25 19:09:15 +02:00
Zweibach d5f149179c Couldn't be bothered getting a more updated image and the text serves to explain well enough in my opinion. 2023-08-25 19:08:22 +02:00
Zweibach 577f5aea35 File and tag import are now one window together with notes. 2023-08-25 19:07:42 +02:00
Zweibach e135b746aa Updated directions. Removed the GoT examples since IIRC dev was unhappy with them. Whackier example for parent hell. 2023-08-25 19:06:24 +02:00
Hydrus Network Developer f16ba5fd67
Version 540 2023-08-23 15:43:26 -05:00
Hydrus Network Developer 23ac2f5967
fixing requirements.txt
Whoops!
2023-08-16 16:36:55 -05:00
Hydrus Network Developer ebb0fe66c1
Version 539 2023-08-16 15:46:51 -05:00
Hydrus Network Developer c2aa7576e5
Merge pull request #1407 from floogulinc/psd
Use psd-tools for PSD handling and allow viewing full size previews of PSDs
2023-08-12 15:11:50 -05:00
Hydrus Network Developer d3f582f784
Fixing QtSVG import error on server again
This bug crept in again, apologies.
2023-08-12 12:44:40 -05:00
Paul Friederichsen b12a77e3a4 Change some imports 2023-08-12 08:36:21 -05:00
Paul Friederichsen 40caf5f3fe Replace PILImage.ANTIALIAS with PILImage.LANCZOS
ANTIALIAS  was removed in Pillow 10
2023-08-11 21:58:36 -05:00
Paul Friederichsen 44ed146c8f When an image can't be rendered return empty set for phash 2023-08-11 21:57:58 -05:00