- Wed Jan 16, 2019 12:04 pm
#80094
Hey QuickFix,
Thanks for the reply. To 'answer' your reasons:
- Image too large: make it smaller
Current image is 93kb. I've tried larger ones but no luck...however, I did try a 9kb logo and it did. However, I would hope to have images that are around 6-700 kbs....I though these would be ok as my understanding was SPIFFY allowed for 3 mbs?
- Image of wrong type: make sure it actually is in the format the extension reflects
nope, in data folder current file is .jpg as is it html (more on that later)
- Image not accessible: put it in SPIFFS and try (as a test) to retrieve it separately by invoking the URL of the image directly
Not sure what you mean here, however when I have it in data file and open it in browser it works no problem.
- Link to image in HTML-page is incorrect: make sure the link is relative
I think I have this correct in hte html file (which is also in data folder) I have
Code: Select all<img src="image.jpg" width="600" height="600">
I have also tried this
Code: Select all<img src="/Users/Me/Desktop/wifi/data/image.jpg" width="600" height="600">
But it does not work either.
- Too many open connections: an ESP can only handle 5 connections at any given time (remember that each file, including the HTML itself, referenced inside a page counts as 1 connection)
Ok, this one is new to me. My arduino sketch folder consists of:
wifi.ino
data/
Data folder consists of:
index.htm.gmz
connect.htm.gmx
image.jpg
pure.css.gz
-The code is blocked serving other files (your image) while the HTML-page is sent (and parsed by the client)
Not sure about this but if so is there a workaround? for clarity here is my html file
Code: Select all<!DOCTYPE html>
<title>Test</title>
<meta name="viewport" content="initial-scale=1.0">
<link rel="stylesheet" href="pure.css">
<html>
<body>
<h1>IMAGE TEST</h1>
<img src="image.jpg" width="600" height="600">
</body>
</html>
Any thoughts, suggestions greatly aprreciated!