![]() ![]() However, when I create a piece of content and load a PDF file, the image does not display and I get this error message in the reports: I'm not quite sure exactly what this does and how it works, but the main thing is that it allows me to display the File Field as "rendered entity" and in the File Type settings, I can now set the Image style I created as a rendering for the Document file type - which seems to include application/pdf Now I find two strange things:Ī) Although I can add "pdf" as a type to an Image field, it doesn't make any difference: I still can't upload a PDF to itī) I can't apply an Image style to the file type fieldĥ) So I thought I would try using File Entity. The Image field is configured to allow PDF as a file type as well as the other types. ![]() I get the same error message no matter what type I select in the "Convert"Ĥ) Anyway, having done all that I created a content type with two fields: an "Image" field and a "File" field. Please check that you supplied the correct filename. The specified file public://styles/pdf_view/public/core/modules/image/ could not be moved/copied because no file by that name exists. Or is it that the Convert already knows what it is converting from so you should only say what you want to convert to?Īt all events, there is a problem here because when I save the Image Style I get this message: I was expecting to see a "convert from" and "convert to" option. However, what is confusing is that there is no option to say what you want to convert to. I can see that PDF shows up in the list of possible conversions, so that seems ok. Installed the Imagemagick module and activated itġ) Selected Imagemagick as the preferred toolkitĢ) Changed the Imagemagick parameters so that it accepts PDFģ) Created an Image style with a "Convert" effect. Here's what I've done (on an otherwise empty test site on my Mac): Thanks for your help - I confess I find the whole image management very confusing at first (even more than on D7 tobe honest!).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |