I need to upload different file types in my "file" field, and *only* for PDF files provide the image preview.
Patch in next comment.

Comments

thepanz’s picture

Status: Active » Needs review
StatusFileSize
new1.48 KB
darrellduane’s picture

This is somewhat relevant to what I need. I need to also convert TIFF files to PNGs. I've already written code to manually do this, and now I also need to work with PDFs, so now I'd like to make a patch that converts the tiff file. Also, for images that view just fine, like jpgs and gifs and pngs, I just want to copy the file into the image field. Patch coming soon.

urlisse’s picture

Status: Needs review » Reviewed & tested by the community

Non PDF files are properly ignored from processing. Thanks for the patch.

dman’s picture

Sounds good. This should be able to go in no problem.

vdupom’s picture

StatusFileSize
new1.19 KB

Same patch as #1, it applies to 3.4 and 3.x-dev

hitchshock’s picture

Status: Reviewed & tested by the community » Closed (outdated)

We stopped supporting the D7 version, so the ticket will be closed, but thanks to everyone who was working on the ticket!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.