Imaginary error

Greetings

I have tried to use imaginary with docker, the service works with the tests for example.

"curl -O “http://127.0.0.1:9000/crop?width=500&height=400&url=https://raw.githubusercontent.com/h2non/^Caginary/master/testdata/large.jpg”

but nextcloud returns error:

message": "Imaginary preview generation failed: Unable to read stream contents: Automatic conversion of false to array is deprecated.

I have tried with PHP 8.1 and 8.2

the imaginary configuration is

"‘enabledPreviewProviders’ => [
‘OC\Preview\MP3’,
‘OC\Preview\TXT’,
‘OC\PreviewMarkDown’,
‘OC\OpenDocument’,
'OC\Preview “Krita”,
‘OC\PreviewImaginary’,
‘OC\Preview\HEIC’,
‘OC\Preview\MP4’,
],

‘preview_imaginary_url’ => ‘http://localhost:9000’,"

Can anyone help me?

Same error here.

I found this mentioning the same error : Data corrupted on download from server error - #6 by tflidd

I finally downgrade my php version from 8.1 to 8.0 & the error disappeared.

1 Like

I will try, thank you