php - ALT text for images in HTML -
We are working on a website that contains many images and must be ALT text for every image required ( JPG, JPEG, PNG, GIF etc). Therefore whenever HTML shows and images are written in the HTML with the ALT text IMG SRC for the image
the solutions that have come up after discussion with developers
1) Create a new table to keep all these image names, and every time the image is used with DB lookup and the appropriate ALT text is added. 2) Another solution is to write some XIF information in each file and every time they use the information of EXIF, the file is read and added in the HTML as needed.
Any suggestions about how to move forward are a lot of images, so we are looking for the least solution server and at least load on loading time.
Additional information - We run PHP on our servers to select images etc.
Thanks
IIFI excludes EXIF because it is PNG and Does not support GIF.
The DB Looks OK (for me) and will be on the scale right (as long as you did cleverly) For example, you should try to minimize lookup as much as possible.
You may already have some of these data, and will also be useful for data about images
Comments
Post a Comment