Week 28 (May 9th)
After weeks of trying, I finally managed to get the images to display correctly on my website. After studying my code and getting a little help, I managed to figure out where I had gone wrong in my code. It turned out to be an extremely simple error which I had initially overlooked. As I missed the issue originally, I then began to over-complicate the code in order to try and fix the problem. After asking for help, the issue was very quickly pointed out to me.
The red circle in the screenshot shows the amended code and shows just how easy it was to fix the problem. All I had to do was use the "img src" tag and then point it to the image field in my database. This is how simple the issue was to fix, however I missed this and instead spent weeks trying to encode/decode the image data in various different ways. After changing the code, I was met with the glorious site of my images being displayed on my website.
Having finally got the images onto my website, I quickly set about scaling them so that they looked more appealing. The green circle in the first screenshot shows how I did this. I simply used CSS to change the way the "img" tag was styled. I simply added a height and width value to ensure the images scaled correctly and weren't stretched/distorted. I also added a small amount of padding around the images so that they weren't stuck together.
After weeks of struggling to implement this feature, I can finally say it is on my site and it works. Now I have this working, my site is really starting to come together and I can now make much more progress than I have recently been able to.
Having finally got the images onto my website, I quickly set about scaling them so that they looked more appealing. The green circle in the first screenshot shows how I did this. I simply used CSS to change the way the "img" tag was styled. I simply added a height and width value to ensure the images scaled correctly and weren't stretched/distorted. I also added a small amount of padding around the images so that they weren't stuck together.
After weeks of struggling to implement this feature, I can finally say it is on my site and it works. Now I have this working, my site is really starting to come together and I can now make much more progress than I have recently been able to.


Comments
Post a Comment