• Resolved Vitor Madeira

    (@vitormadeira)


    HI! This is not a support issue, but rather a request for a new option in your plugin.

    Would it be possible to automatically draw a thin line on the edge of the resulting thumbnail images (a contour)?

    That would help a lot as my PDF files are mostly on white background, as well as my web page, so the resulting thumbnails just don’t look good on the web page.
    One just can’t tell where is the edge of the thumbnail and can’t get the exact idea of how the document really looks on the thumbnail preview.

    You could code a new setting so the resulting thumbnails would come with a thin border added. This could be turned on or off in ‘options’ for the plugin.

    Also, if possible, it would be a very good idea to add the possibility for user (the webmaster), when creating new thumbnails, to choose the colour and the thickness of the line in the plugin options.

    Thank you so very much. I just love this plugin.

    https://www.ads-software.com/plugins/pdf-image-generator/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mizuho Ogino

    (@fishpie)

    Drawing a line on an image by iMagick is technically difficult.
    The plugin only make a fullsize image of PDF and other thumbnails are generated by wordpress functions.

    I think the simple way to draw a line on an edge of an image is to use CSS. The plugin give “thumb-of-pdf” class to PDF image and also add “link-to-pdf” class to wrapping “a” tag.

    Thank you!!

    Thread Starter Vitor Madeira

    (@vitormadeira)

    Hi! Thank so very much for your great support.

    I’m not that fluent on coding, so I guess I don’t quite understand what you mean in your second sentence.

    Do you mean that I could explore something called “link-to-pdf” class to wrapping “a” tag? Where do I do that?

    Also, what am I supposed to do with “thumb-of-pdf” class?

    Thank you, and, please, do excuse my lack in profound tech knowledge.

    Plugin Author Mizuho Ogino

    (@fishpie)

    It’s nothing to worry about!!
    Just add below code to style.css in your theme.

    a.link-to-pdf img {
      border:1px solid gray;
    }

    I really appreciate your translate project!!
    I’m so happy that I can be able to share the plugin in your language.

    Thank you.

    Thread Starter Vitor Madeira

    (@vitormadeira)

    Great Scott! That was amazing! Such a simple code to make all the difference.

    The translation was the minimum I found at my reach to help your tremendous work.

    Once again, thank you so very much. I really appreciate your work.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Automatically draw a thin line on the edge of the thumbnail image (contour)’ is closed to new replies.