imtbl / hydrus-server-docker Goto Github PK
View Code? Open in Web Editor NEWhydrus server running on Debian
License: GNU Affero General Public License v3.0
hydrus server running on Debian
License: GNU Affero General Public License v3.0
Yesterdays changes to 4.1.0 haven't pushed out yet, there might be an issue.
Traceback from client:
BadRequestException
Could not generate thumbnail from that file:
Traceback (most recent call last):
File "/usr/src/app/include/HydrusServerResources.py", line 258, in ParseFileArguments
thumbnail_bytes = HydrusFileHandling.GenerateThumbnailBytes( path, target_resolution, mime, duration, num_frames )
File "/usr/src/app/include/HydrusFileHandling.py", line 101, in GenerateThumbnailBytes
numpy_image = HydrusImageHandling.ResizeNumPyImage( numpy_image, target_resolution ) # just in case ffmpeg doesn't deliver right
File "/usr/src/app/include/HydrusImageHandling.py", line 629, in ResizeNumPyImage
interpolation = cv2.INTER_LANCZOS4
NameError: name 'cv2' is not defined
Traceback (most recent call last):
File "include\HydrusThreading.py", line 342, in run
callable( *args, **kwargs )
File "include\ClientGUI.py", line 145, in THREADUploadPending
service.Request( HC.POST, 'file', { 'file' : file_bytes } )
File "include\ClientServices.py", line 902, in Request
network_job.WaitUntilDone()
File "include\ClientNetworkingJobs.py", line 1137, in WaitUntilDone
raise self._error_exception
include.HydrusExceptions.BadRequestException: Could not generate thumbnail from that file:
Traceback (most recent call last):
File "/usr/src/app/include/HydrusServerResources.py", line 258, in ParseFileArguments
thumbnail_bytes = HydrusFileHandling.GenerateThumbnailBytes( path, target_resolution, mime, duration, num_frames )
File "/usr/src/app/include/HydrusFileHandling.py", line 101, in GenerateThumbnailBytes
numpy_image = HydrusImageHandling.ResizeNumPyImage( numpy_image, target_resolution ) # just in case ffmpeg doesn't deliver right
File "/usr/src/app/include/HydrusImageHandling.py", line 629, in ResizeNumPyImage
interpolation = cv2.INTER_LANCZOS4
NameError: name 'cv2' is not defined
Making the issue here as this seems like it's related to the docker.
The file in question was a 3.6MB video/webm file (1280*720) 25.5 seconds (764 frames)
The server now supports OpenCV for image handling, which should be faster and more accurate than Pillow.
However, there are no prebuilt packages for OpenCV on Alpine and building them takes a lot of time and is susceptible to problems due to Alpine using musl instead of glibc.
Therefore, this image should be changed to be based on Debian instead of Alpine (even though that means sacrificing a leaner image size).
An added bonus is that hydrus client/server is mainly tested on Debian-based distros, so switching should cause less headache in the future.
Hydrus is currently on release 399, and the docker is on 393, 6 versions behind.
Would you be able to spare some time to look over and update the container please?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.