Git Product home page Git Product logo

hydrus-server-docker's People

Contributors

imtbl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

xaegrek

hydrus-server-docker's Issues

Issue generating thumbnails

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)

Switch to Debian to make usage of OpenCV feasible

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.

Can we get an update please?

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.