[img_info/]


Unlike other IMG Processor shortcodes, [img_info/] has no extra parameters and performs no transformation. Instead of returning information for a transformed and cached image, it returns information for the source image.

[img_info output="{format}"]<source>[/img_info]

output=”img”

[img_info output="img"]atest.gif[/img_info]
atest.gif
<img src="/wp-content/uploads/image-source/atest.gif" width="172" height="243" alt="atest.gif" />

output=”info”

[img_info output="info"]atest.gif[/img_info]
  • img: atest.gif
  • file: /srv/plugins.tenandtwo.com/htdocs/wp-content/uploads/image-source/atest.gif
  • url: /wp-content/uploads/image-source/atest.gif
  • width: 172
  • height: 243
  • type: GIF
  • content_type: image/gif
  • readable: 1
  • writeable:
  • bytes: 20341
  • resolution: 0,0
  • datetime: 2024-04-06 17:19:51
  • dir: /srv/plugins.tenandtwo.com/htdocs/wp-content/uploads/image-source/
  • basename: atest.gif
  • name: atest
  • ext: gif
  • alt: atest.gif
  • _usage:
    • cli-command: wp img_process info --output="info" /wp-content/uploads/image-source/atest.gif
    • api-nocache: <img src="/wp-content/plugins/tenandtwo-img-processor/api.php?source=%2Fwp-content%2Fuploads%2Fimage-source%2Fatest.gif&transform=none&output_nocache=1" width="172" height="243" alt="atest.gif" />
    • wp-shortcode-img: [img_info output="img"]/wp-content/uploads/image-source/atest.gif[/img_info]
    • wp-shortcode-html: [img_info output="html" img-id="IMG-ID" alt="ALT" title="TITLE" style="STYLE" decoding="auto|async|sync" loading="eager|lazy"]/wp-content/uploads/image-source/atest.gif[/img_info]
    • wp-shortcode-figure: [img_info output="figure" figure-id="FIGURE-ID" figure-class="FIGURE-CLASS" caption="CAPTION" caption-class="CAPTION-CLASS" img-id="IMG-ID" alt="ALT" title="TITLE" style="STYLE" decoding="auto|async|sync" loading="eager|lazy"]/wp-content/uploads/image-source/atest.gif[/img_info]