# How to resize image file in watcher

**URL:** <https://discuss.elastic.co/t/how-to-resize-image-file-in-watcher/318703>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [November 11, 2022, 2:51am UTC](https://discuss.elastic.co/t/how-to-resize-image-file-in-watcher/318703 "2022-11-11T02:51:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![minkiyo](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@minkiyo](https://discuss.elastic.co/u/minkiyo)\
**Post date:** [November 11, 2022, 2:51am UTC](https://discuss.elastic.co/t/how-to-resize-image-file-in-watcher/318703/1 "2022-11-11T02:51:00Z")

</div>

I want to add image file in email using watcher.  
but It's only added very big size image file.  
I think the width and height in img src don't seem to work.  
Would you please explain how to resize image file in watcher??

```auto
"actions": {
    "email_admin": {
      "email": {
        "profile": "standard",
        "attachments": {
          "dashboard_report.png": {
            "reporting": {
              "url": "url ~~~~",
              "inline": true,
              "auth": {
                "basic": {
                  "username": "elastic",
                  "password": "::es_redacted::"
                }
              }
            }
          }
        },
        "to": [
          "minkiyo.kim@lge.com"
        ],
        "subject": "OP Test PNG",
        "body": {
          "html": """ <p><b> test <b><p> 
          <img src=dashboard_report.png width="100px" height="50px"/> """
        }
      }
    }
  }

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 9, 2022, 2:51am UTC](https://discuss.elastic.co/t/how-to-resize-image-file-in-watcher/318703/2 "2022-12-09T02:51:35Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
