# Watermark on multiple images

**URL:** https://community.glideapps.com/t/watermark-on-multiple-images/68112
**Category:** Ask for Help
**Created:** [November 24, 2023, 2:17pm UTC](https://community.glideapps.com/t/watermark-on-multiple-images/68112 "2023-11-24T14:17:02Z")
**Posts on this page:** 1
**Showing post:** 11

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [December 7, 2023, 1:09pm UTC](https://community.glideapps.com/t/watermark-on-multiple-images/68112/11 "2023-12-07T13:09:15Z")

</div>

Either way would require writing code. Might as well save a step and do it directly in Glide instead of hosting code externally.

I used ChatGPT to throw together a quick outline of javascript to use. This will need to be modified to your needs. I’m including two parameters (p1 and p2). One would be the comma delimited list of urls and the other could be the watermark url or text or whatever you intend to use for a watermark.

```auto
function applyWatermarkToUrls(inputUrls, watermark) {
  // Split the comma-delimited list into an array of URLs
  const urls = inputUrls.split(',');

  // Modify each URL to apply a watermark using Cloudinary
  const modifiedUrls = urls.map(url => {
    // Modify the line below as necessary to populate a cloudinary url with the necessary parameters. 
    const modifiedUrl = `${url}?watermark=${watermark}`;
    return modifiedUrl;
  });

  // Join the modified URLs into a new comma-delimited list
  const result = modifiedUrls.join(',');

  return result;
}

return applyWatermarkToUrls(p1, p2);

```

---

_[View the full topic](https://community.glideapps.com/t/watermark-on-multiple-images/68112)._
