13 questions
3
votes
1
answer
235
views
How to create a scalloped border around a div containing bg content using CSS
I’m trying to create a 15px yellow scalloped border around generic content divs (e.g. with background photos or videos) for a nonprofit preschool website. Here’s the effect I’m aiming for:
I’m using ...
6
votes
4
answers
441
views
How to find first image or video thumbnail in a webpage
How to find first image or first video thumbnail in a webpage? My code (below) retrieves an image but it's always not the first visible image and it doesn't fetch video thumbnails properly as well.
...
1
vote
0
answers
36
views
Progress bar / seek for Gif [duplicate]
How can I seek playback time of a gif?
I'm trying to have a progress bar for gifs to pause/seek at specific gif's playback time.
I couldn't find any HTML DOM property/interface like videoElement....
0
votes
1
answer
258
views
Why is a gif image displayed when used inside a picture element?
I am trying to use a picture tag to show an animated image (gif), but it is not loading.
The same file loads fine when I use an img tag.
Why is that? What am I doing wrong?
<!-- This works --&...
0
votes
2
answers
182
views
File reader API gives no out put on AUDIO files
As a part of a before upload control, I check if added files actually match the filetype that their extension describes.
I do a filecheck using a hidden element. and if it fails, it gets removed after ...
0
votes
1
answer
530
views
Open/close a <img> video stream
I'm using an Arduino Esp32 with a camera to stream video into a web page I've created. The Esp32 shuts down after around an hour and so the the page needs
refreshing to bring the stream back (the ...
3
votes
0
answers
1k
views
lazysizes - Aspect ratio not working for sources when {width} and {height} placeholders used
Seems that aspect ratio is not calculated for every picture source and only taken from the img tag itself. This prevents the plugin to work in art direction mode with different aspect ratio.
img {
...
0
votes
1
answer
219
views
Save canvas to an image file dynamically
Is there a way to download a canvas image to a file folder without a prompt showing up? I have found solutions requiring a prompt where you name the file, but I have not found any solutions where you ...
0
votes
1
answer
332
views
How to use Python's BeautifulSoup html parser to get img tag src with 2 'src' attributes
I have HTML pages that contains image tags with 2 'src' attributes, and I want to use BS to extract the first 'src' and not the second 'src'.
For example:
When I use BS as follows:
from bs4 import ...
-3
votes
1
answer
114
views
How can I get to add images to html5 code [duplicate]
I'm trying add the images to html5 code.
<!DOCTYPE html>
<html>
<head>
<title> trying the code </title>
<body>
<h1> html code </h1>
<img src="...
0
votes
1
answer
148
views
PHP check if file_exists without extension then Ajax a div with appropriate media tag (img or video) based on filepath
First posting here. I know inline php is not preferred but I haven't converted all my scripts to echo json_encoded arrays to work in javascript on the client side...so for now, I have inline php.
I ...
5
votes
1
answer
2k
views
Use MediaRecorder To Save File As GIF
I'm working on a screen-capture program. Currently, it's saving the output of the window as webm. I'm wondering if it's possible to save it as GIF instead using MediaRecorder, which is part of the ...
4
votes
2
answers
1k
views
Using videos in img html
Referencing this article: https://cloudinary.com/blog/evolution_of_img_gif_without_the_gif
What is the compatibility situation with videos in img in 2020? I don't know what the name of the feature is ...