Skip to main content
Level 2
April 2, 2024
Solved

Change Image under an Image Map

Hi all,

I have to change an image under an Image Map, without losing all the references, is there a method to do that or I must recreate the areas and put all the links back?

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Kamal_Kishor
Kamal_KishorAccepted solution
Community Advisor
April 4, 2024

@lucagil_ad : I am replacing the image by drag-drop into the Image field.
I have noticed, if you clear the Image before replacing, it removes the previously selected Image Map as well. It only retains if you replace new image by drag-drop on top of existing image.

As previously said, I am on AEM 6.5 and extending Image V2.

Please see the image field I am using in attached screenshot.
thanks.

9 replies

EstebanBustamante
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
April 2, 2024

Hi,

 

My understanding is that the links are considered part of the image. Therefore, if the image changes, the links will also be affected and may no longer work. In such a case, I would recommend changing the image and recreating the links accordingly. While there may be an option to change the source of the image through CRX/DE, it might be considered a somewhat hacky approach and I am not fully sure if this will work.

 

Hope this helps. 

Translate
Esteban Bustamante
sravs
Community Advisor
Community Advisor
April 3, 2024

Hi @lucagil_ad ,

 

You can change the image using replace option instead of uploading as a new image, i.e., till the path and the name of the image is same as the old image the references won't be affected.

Translate
Level 2
April 4, 2024

Hi Sravs and thank you for the reply.

How can I simply replace the image? If I choose a different image the Image Map goes with that, is there a different way to replace that I don't know?

Translate
sravs
Community Advisor
Community Advisor
April 4, 2024

Are you picking the image from DAM, if yes, try to replace the image from DAM.

While uploading the new image with the old image name it will ask for replace option. It will update all the references with the new image.

Translate
Kamal_Kishor
Community Advisor
Community Advisor
April 3, 2024

@lucagil_ad : I am able to test that Image Map is not lost even when you change the Image (using component authoring and not replacing in crx etc). Have you tried it already? If not, please try and let us know if you find it otherwise.

I am on AEM 6.5 (local instance) and using Image V2.

On a different not - Are you changing existing Image with a totally different Image or same Image with different size/quality etc?

If it is a different Image, it would make sense to do Image Map again as it is a different Image anyway and you would want to target different section on the Image.

thanks.

Translate
Level 2
April 4, 2024

Hi Kamal_Kishor and thank you for the reply. I Changed the image using the Pick button in the authoring modal and by doing that the mapping goes with the image. Is there a different way to do that?

Translate
Kamal_Kishor
Community Advisor
Kamal_KishorCommunity AdvisorAccepted solution
Community Advisor
April 4, 2024

@lucagil_ad : I am replacing the image by drag-drop into the Image field.
I have noticed, if you clear the Image before replacing, it removes the previously selected Image Map as well. It only retains if you replace new image by drag-drop on top of existing image.

As previously said, I am on AEM 6.5 and extending Image V2.

Please see the image field I am using in attached screenshot.
thanks.

Translate
arunpatidar
Community Advisor
Community Advisor
April 8, 2024

Hi @lucagil_ad 

Were the user suggestions helpful? Let us know if more details are needed or mark the answer as correct. If you found a solution independently, please share it with the community. 

Translate
Arun Patidar
kautuk_sahni
Adobe Employee
Adobe Employee
May 16, 2024

@lucagil_ad Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Translate
Kautuk Sahni