-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Imaginary doesn't generate previews for PDF #40652
Comments
Yes, it should work out of the box |
OK, this is confirmed on at least 4 instances running 27.1.1. All with imaginary installed, but no Imagick. |
If you remove that again does it make it work? |
Works fine on my side, only Imaginary is a docker container on a remote host, not NC. |
Some debug if it helps (tested right now with 2 PDFs):
|
I'll enable some logs on my imaginary instance and see what it says. It doesn't work for me. |
It's already removed, please check the first post. @solracsf Strange. Running the AIO docker on the same host as Nextcloud. No imagick installed. Do you have anything extra installed on your machine? |
No Imagick, no Ghostscript. |
Screencast.from.2023-09-27.12.59.38.webm |
I just tested with an AIO test-instance that runs 27.1.1 and pdf preview generation using imaginary works fine over here. |
Super odd, I will do a 100% fresh install, and test again. |
Maybe you run into this? |
Hmm, I don't think so since these are my settings:
So it's larger |
@enoch85 You have to look at the called URLs for the previews in your source code of the page... NC automatically requests the normal previews with x=250 and y=250. If you pick a URL from there, open it in a new browser tab and change the parameters to 257, then the preview should appear. |
@Chartman123 Will try that. Meanwhile I can confirm that the previews are generated at least for the "details pane": But not in the file list: |
@Chartman123 OK, so it's confirmed to be working. https://cloud.domain.nu/core/preview?fileId=9150285&c=58362c5cb226fe64beeda5cdc76804c1&x=257&y=257&forceIcon=0&a=1 = working for the PDF. So is this a bug with the server or Imaginary? |
@enoch85 Yes, same for me... In the Details pane the previews are requested with x=1920&y=1080. This seems to be Imaginary related. As soon as I disable it in the config PDF previews start to work again as expected. |
Noticed the same thing for TIF now. Changing to 257X257 on that made the preview appear. Here's a stack trace from the browser log, doon't know if it helps?
|
A bit more detailed video. This is a 100% fresh install: Screencast.from.2023-09-27.14.06.23.webmDid the |
So in the end, this is indeed a duplicate of #38911, isn't it? |
Sure, we can close it as that. |
What are your Imaginary |
https://github.com/nextcloud/vm/blob/master/apps/imaginary.sh#L113-L114 |
Try:
|
@solracsf Doesn't make any difference I'm afraid. :/ |
Bug description
Been trying for a while now to generate previews for PDFs, using Imaginary. Nothing I've tried so far makes it work.
OC\\Preview\\PDF
to theconfig.php
file (shouldn't be needed)Steps to reproduce
Expected behavior
PDFs should generate a preview, but they aren't
Installation method
Community VM appliance
Nextcloud Server version
27
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 22 to 23)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
It's OK
Nextcloud Logs
No response
Additional info
cc @szaimen I can see that you install
vips
packages in the docker image so it should work out of the box, right?The text was updated successfully, but these errors were encountered: