Upload HTML containing fixed and dynamic images | Community
Skip to main content
Level 2
February 23, 2023
Solved

Upload HTML containing fixed and dynamic images

  • February 23, 2023
  • 2 replies
  • 1660 views

Hello,

 

Has anyone found a simple solution to simply load HTML containing both fixed images and dynamic images (i.e. images whose url is retrieved in the targeting workflow) into Adobe Campaign?

By default, the upload fails because Adobe tries to upload all images, including dynamic ones (img src="<%= targetData.img %>").

One solution is to comment out in my HTML the parts containing the dynamic images. This way, Adobe manages to load the HTML and upload the fixed images.
And then I deactivate the upload of the images so that Adobe does not try to upload the images again when preparing the delivery.
And finally, I enable the parts that were in comments.

It works but it's really not practical and I'm surprised that such a "simple" use case requires such a user unfriendly method.

 

Thanks in advance

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Mathieu6

Hello ! Thanks for your quick reply.

Yes that's another solution but it it forces to touch the HTML code after loading, it's not optimal and the marketing teams don't necessarily have the skills for that 🙂

 

When you use an external tool like Dartagnan for example, it's a shame to have to touch the HTML afterwards.

 

I therefore conclude that there is no solution in which one could load the HTML and not touch it afterwards?

 

Thanks again!

2 replies

Manoj_Kumar
Community Advisor
Community Advisor
February 23, 2023

Hello @mathieu6 

 

Ideally, HTML is uploaded with static images, and then dynamic images are added later. If you follow the same process then you should not see any issues.

Manoj     Find me on LinkedIn
Mathieu6AuthorAccepted solution
Level 2
February 24, 2023

Hello ! Thanks for your quick reply.

Yes that's another solution but it it forces to touch the HTML code after loading, it's not optimal and the marketing teams don't necessarily have the skills for that 🙂

 

When you use an external tool like Dartagnan for example, it's a shame to have to touch the HTML afterwards.

 

I therefore conclude that there is no solution in which one could load the HTML and not touch it afterwards?

 

Thanks again!

akshaaga
Adobe Employee
Adobe Employee
March 8, 2023

Hi @mathieu6 ,

It can be challenging to upload HTML containing both fixed images and dynamic images into Adobe Campaign. One potential solution is to host the dynamic images separately on a web server and reference them in the HTML using an absolute URL. This way, Adobe Campaign won't try to upload the dynamic images during the upload process.

Another option is to use dynamic image generation services like Adobe Dynamic Media, which can dynamically generate images based on targeting data and return them as a URL. 

Sukrity_Wadhwa
Community Manager
Community Manager
April 4, 2023

Hi @mathieu6,

Was this solution by @akshaaga helpful for your use case? Do let us know.

Thanks!

Sukrity Wadhwa
Mathieu6Author
Level 2
April 4, 2023

Hello @akshaaga @sukrity_wadhwa ,

From my point of view, it's not really a solution as we have to modify the HTML manually after uploading it in Adobe.
But I understand that there is no simple solution for what I want to do.

 

Thanks,

Mathieu