Matija

Wrong image for element

Recommended Posts

Hello,

I've just started playing with the API. Wonderful, thanks!
Found a small bug - if I look for a certain element ID, it always gives the URL of the black version of the same design.

Example: Element ID 6093527 (Bar 3L, LBG) gives the link to the black Bar 3L:

"part_img_url":"https://m.rebrickable.com/media/parts/elements/4566275.jpg"

 

Best,
Matija

 

Share this post


Link to post
Share on other sites

The part_img_url field in the part {} section is not color-specific as it's just a generic response for that part model.

However, I've added two new fields at the top level - element_img_url and part_img_url which is color specific. The element_img_url will only ever have an element image, while part_img_url could be element/ldraw/photo based on what's available.

Share this post


Link to post
Share on other sites