Autumn 2020: Web Application Assignment

Thumbnail Images for 247Music web application.
The assignment specification document refers to displaying thumbnail images for both Artists and Albums where
appropriate. The Data Dictionary indicates that there is a thumbnail field in both the album and artist table. The
data stored in these two fields are the filenames for the thumbnails that are to be displayed. The actual thumbnail
files have been created and are stored centrally on the TWA server in the following folders:
/twa/thumbs/albums/
/twa/thumbs/artists/
Each of the thumbnail images were produced to be 106 pixels wide and 106 pixels high.
There is no need for you to store these images in your TWA site – in fact, you should not. Your php script should use
the filename obtained from the thumbnail field (of the relevant table) to concatenate with the relevant path above to
be able to display the image.
For example, to display the thumbnail image for the artist Cold Chisel the image tag would take the following form:

Notes about the above image tag:
• the text in blue represents the value obtained from the thumbnail field in the artist table.
• since we should ensure that the html generated by our scripts conform to the rules of HTML5 we must also
provide an appropriate alternate text attribute for each image displayed. Hence, the text in dark red represents
the value obtained from the artist_name field in the artist table.
• You may change how large/small the image displays in the page by modifying the width and height attribute,
but remember they are only meant to be thumbnails.

The post Autumn 2020: Web Application Assignment appeared first on My Assignment Online.

WeCreativez WhatsApp Support
Our customer support team is here to answer your questions. Ask us anything!
👋 Hi, how can I help?
Scroll to Top