<p>While you don't state the purpose of the image, one might assume that you want to use it as a social share image?
If so, <a href="https://ghijk.co.uk/blog/generate-dynamic-social-share-images-in-craft-cms" rel="nofollow noreferrer">this article might come in handy</a>.</p>
<p>Even if your intented use is different I think the above would be a good starting point.</p>

CC BY-SA 4.0
2023-06-28T13:10:50.880Z
Thanks for the article.

I followed all the instructions, but for some reason the images are not being generated at all. I'm not getting any error, so I'm not sure If the job gets triggered. Any Idea how can I test this out?
Michal Bulla
CC BY-SA 4.0
2023-06-29T06:29:17.560Z
Ok, It seems like I moved forward a little. Now I'm getting an error _Class "modules\jobs\GenerateSocialCard" not found_. I have the file GenerateSocialCard.php under modules/jobs and I have the _class GenerateSocialCard extends BaseJob specified_.
Michal Bulla
CC BY-SA 4.0
2023-06-29T13:03:40.313Z
I got stuck, so I added [new question](https://craftcms.stackexchange.com/questions/40903/class-modules-jobs-generatesocialcard-not-found) about this to describe the problem little bit more further. I would be glad If you could take a look. Thanks.
Michal Bulla
CC BY-SA 4.0
2023-06-26T11:45:06.790Z
2023-06-26T11:45:06.790Z
psithu
<p>I would like to <strong>generate image automatically on entry save</strong>, using the entry Title and a specified image as a background.</p>
<p>I was thinking to use the <strong>Preparse Field plugin</strong>, but it seems like it's not possible to use the Image Magick commands inside the Preparse fields.</p>
<p><strong>Imager X</strong> plugin is also not able to do this.</p>
<p>Any ideas?</p>

<image-transforms><image>
Generate an Image from Title
# Generate an Image from Title

(Asked by: username_0 on 2023-06-26)

I would like to **generate image automatically on entry save**, using the entry Title and a specified image as a background.

I was thinking to use the **Preparse Field plugin**, but it seems like it's not possible to use the Image Magick commands inside the Preparse fields.

**Imager X** plugin is also not able to do this.

Any ideas?

**Tags:** image-transforms, image


---

## 1 answers

### Answer by username_1 on 2023-06-26. Score: 2

While you don't state the purpose of the image, one might assume that you want to use it as a social share image?
If so, [this article might come in handy](https://ghijk.co.uk/blog/generate-dynamic-social-share-images-in-craft-cms).

Even if your intented use is different I think the above would be a good starting point.

> **Comments:**
> **username_0**: Thanks for the article.  I followed all the instructions, but for some reason the images are not being generated at all. I'm not getting any error, so I'm not sure If the job gets triggered. Any Idea how can I test this out?  
> **username_0**: Ok, It seems like I moved forward a little. Now I'm getting an error _Class "modules\jobs\GenerateSocialCard" not found_. I have the file GenerateSocialCard.php under modules/jobs and I have the _class GenerateSocialCard extends BaseJob specified_.  
> **username_0**: I got stuck, so I added [new question](https://craftcms.stackexchange.com/questions/40903/class-modules-jobs-generatesocialcard-not-found) about this to describe the problem little bit more further. I would be glad If you could take a look. Thanks.  

---

