• Resolved steacha

    (@steacha)


    I am not sure if I am understanding this correctly, but it seems that thumbnail_width and thumbnail_height should allow to manipulate the dimensions of icon types (i.e. when the size parameter is set to ‘icon’).

    If that is true, why then would the following line still produce thumbnails that are 64×64 pixels?

    [mla_gallery post_mime_type="application/pdf" attachment_category="surveys" mla_caption="{+description+}" orderby="date DESC" size="icon" link="file" mla_caption="{+title+}" mla_output="gallery" posts_per_page="6" columns="3"]

    What am I missing?

    http://wordpress.org/plugins/media-library-assistant/

Viewing 1 replies (of 1 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for this interesting question about the size=icon parameter.

    The “icon” size is an MLA invention intended to improve the display of non-image items, such as PDF documents. The dimensions of the icon will be 64×64 if the “Enable MLA File Type Icons Support” option is checked (on the Settings/Media Library Assistant Uploads tab) or 60×60 if the default WordPress icons are used. There is no way to alter these dimensions in the current MLA version.

    I believe that the “thumbnail_width and thumbnail_height” you refer to are the values found in the table of “Attachment-specific substitution parameters for the markup template Item part”; is that right? If so, these parameters are read-only; they give you the values used for the item so you can use them in a custom Markup Template.

    There is, however, a “trick” you can use to change the size of the icons displayed in a given [mla_gallery]. You can add mla_image_attributes='width=120 height=120' to the parameters, which will override the parameters already present in the < IMG > tag. It’s not pretty (the icons are fuzzy), but it works.

    I hope that gives you what you need for your application. Thanks again for the question.

Viewing 1 replies (of 1 total)
  • The topic ‘Thumbnail Size’ is closed to new replies.