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.
סיכום מבוסס בינה מלאכותית
昊毅_周 reported that images uploaded via the Admin API to a Discourse post lacked lightbox effects, despite having identical dimensions and aspect ratios. blake requested the API call details and suggested checking if rebuilding the HTML or manually creating posts via the UI reproduced the issue, aiming to determine if the problem was specific to the API or the platform. 昊毅_周 confirmed that rebuilding the HTML did not resolve the issue. Ultimately, 昊毅_周 stated that the issue was resolved by adding a 200ms delay between each API call in the automation script, which allowed all images to display correctly with lightbox effects.
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.
@昊毅_周 were you able to resolve your issue?
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!
