Media items not being updated after sync

Created on 11 July 2023, 12 months ago
Updated 19 July 2023, 11 months ago

Problem/Motivation

I have an 'Acquia DAM Image' media type in Drupal which is connected to my DAM account (using the Acquia DAM Classic service backed by WebDAM). The 'asset refresh interval' setting is set to run once per hour. This asset refresh appears to randomly not work.

Say I have a 500x500 DAM image placed on a page via a WYSIWYG. If that image gets modified in the DAM (say it's dimensions are modified to be 600x400) I expect to see this reflected on that page in Drupal once the asset refresh takes place. However, I am not seeing this happen.

The first time an image is added, the dimensions are correct. However there seems to be some issue with the sync as I'm not seeing the correct dimensions any longer if those dimensions are changed in the DAM. Occasionally it will work...but most times it does not.

I've seen this with multiple images. For instance, I have an image now (say laptop.png) that should be 487x407 (the latest version in the DAM). In Drupal, if I go inspect the actual file path of where it is stored, the dimensions are correct. However when it renders, it is rendering at 570x500. The 'laptop.png' image has been modified a few times in the past, and it is now on its 5th version. What is odd is that the width of 'laptop.png' is hardcoded to be 570px (if I inspect the img width attribute). Version 3 of that image actually was 570x500..but I would expect V5 to be the one that is now displaying, not V3. I'm seeing the value of 570 stored in the database as well for the width. Why is this not being updated to be 487?

How is it that the file itself (stored in the public file system) has the correct dimensions, but the html width attribute is showing the width of a previous version? When rendering, it uses that out of date width attribute, so now the image is not displaying correctly. I'm not seeing any errors in the Drupal logs related to this either.

We do have thousands of images in the DAM. Could it be that there are just to many and the sync doesn't have enough time to run for all of them? Or is it possible I don't have something set up correctly?

I've been debugging this one for a while but can't seem to figure out where the issue is. Any help would be greatly appreciated!

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @tlo405
  • πŸ‡ΊπŸ‡ΈUnited States kaynen

    Hi! Unfortunately media_acquiadam v 1 is no longer being actively supported by Acquia. We recommend your upgrade to v2 and connect with your Acquia CSM if applicable to migrate from Acquia DAM Classic to Acquia DAM. If you would prefer to stay on 1.x, others may be able to chime in to try to help with the Webdam image sizing issues you are experiencing.

Production build 0.69.0 2024