I uploaded some images to the post via the API, why do only some images have the lightbox effect?

Please see this post.
I uploaded some images using an automated script via the admin API.
However, only a small portion of the images have a lightbox effect.
The images have the same length, width, and aspect ratio.

2 Likes

Can you share the api call you are using to create the post with the image link?

If you rebuild the html for a post does it create the lightbox?

Also if you manually create some posts with images just like your api calls do, does it not make light boxes for some of them? Trying to figure out if this is an api issue or if the same issue exists in the UI.

2 Likes

@昊毅_周 were you able to resolve your issue?

1 Like

The problem still cannot be solved by rebuilding HTML.

I think it should be resolved.
My automation script didn’t have a delay at first, but then I added a 200ms delay to each API call. All the images are now normal.
Thank you!

1 Like