Giter Club home page Giter Club logo

Comments (2)

major-mayer avatar major-mayer commented on July 24, 2024

Hi sorry for the long time to respond, I hadn't had a Nextcloud dev instance running on my new PC so i couldn't elaborate what went wrong here.
The conversion crashed when the ImageConverter tried to save the new file.
I'm not exactly sure, but i think the reason for that is, that the PHP function file_put_contents() which is wrapped by OCP\Files\Fille->putContent() expects 2 arguments and only received one as it can be seen here:

ArgumentCountError: Too few arguments to function OC\Files\Storage\Wrapper\Wrapper::file_put_contents(), 1 passed in /var/www/nextcloud/lib/private/Files/View.php on line 1161 and exactly 2 expected

The first argument is the filepath, which I think was given, the second is the actual content of the file (so the converted image blob). This one seemed to be missing.

So to conclude I think the image couldn't be saved because it simply was not converted in the first place. This is also supported by the fact that your Nextcloud instance does not create HEIC -> JPEG previews at all.

Please execute php -r 'phpinfo();' | grep HEIC on your server as described in linked article from the Readme.
If it's not printing anything, either your ImageMagick installation is not complied with HEIC support or something (which you say isn't the case) or PHP-Imagick is not installed (double check this with php -m).
Best wishes

from imageconverter.

major-mayer avatar major-mayer commented on July 24, 2024

Close this because it seems stale

from imageconverter.

Related Issues (11)

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.