jmoont / pdfthumb

PDF thumbnail generation for Craft CMS 3
MIT License
7 stars 6 forks source link

Image not generated #1

Closed outline4 closed 6 years ago

outline4 commented 6 years ago

Hi, I would love to use your plugin but the image is not output.

I've specified the following folders: Storage Path: /home/outline4/www/xxxxxx/public_html/documents/pdfThumbs/ (DOCUMENT_ROOT) Base URL: /documents/pdfThumbs/

It created the folder "previews" within the pdfThumbs template.
And it creates an image url: /documents/pdfThumbs/previews/c26c3242ef8985259ac2b28d10481341.jpg

But the image itself is not created.
I guess it's the "Storage Path" that is not correct?

I've tried all sorts of "Storage paths", but none of them seem to work.
Could you point me into the right direction?

Cheers Stefan

Btw: If I specify Base URL: @web/documents/pdfThumbs/ The @web part is not translated to the url.

jmoont commented 6 years ago

Thanks for taking a look at my plugin.

Try setting the Storage Path to: @webroot/documents/pdfThumbs

and the Base URL to: /documents/pdfThumbs/

Unfortunately, I haven't implemented @web support yet. Let me know if this works for you.

outline4 commented 6 years ago

That's what I first tried... With no trailing slash at the storage path and a trailing slash at the base Url.

I also limited the upload directory to only one folder... and the type of file to only pdf.

Still - no image created.

hm? anything else I could try?

jmoont commented 6 years ago

Are there any errors in the logs?

outline4 commented 6 years ago

No I did not spot any errors…

jmoont commented 6 years ago

Have you tried running it locally? Could it be a permissions issue? Do you have ImageMagick available on the command line?

jmoont commented 6 years ago

Did you have any luck in getting it to work?

jmoont commented 6 years ago

I'm closing this for now - please let me know if you had further issues.

G17creative commented 6 years ago

Hi there, we're experiencing the same issue. The preview folder is being created but no images are being generated

bymayo commented 6 years ago

Same issue. But I have a feeling this has something to do with it trying to locate the file in a subdirectory?

mark-chief commented 6 years ago

I am having this issue also...

scuocere commented 6 years ago

Hello, thanks for writing the nice plugin. Unfortunately i have the same problem. I have a multisite and multilanguage environment, if this has something to do with. My error message in the frontend is: Trying to get property 'size' of non-object