Desc A easy api. That's it. Ahhh, Put this PHP in the same folder as the pictures. And you can add more extension support in LINE 4: $img_array = glob("./folder/*.{webp,png,jpg,jpeg,bmp}",GLOB_BRACE); License WTFGL