I would like to add an overlay effect to all images, with text overlaying the image. I tried tutorials but could not get it to work. All the images are located in main.js.  const petsData = [{     name: &quot;Purrsloud&quot;,     species: &quot;Cat&quot;,     favFoods: [&quot;wet food&quot;, &quot;dry food&quot;, &quot;&lt;strong&gt;any&lt;/strong&gt; food&quot;],     birthYear: 2016,     brick: &quot;brick&quot;,     photo: &quot;https://learnwebcode.github.io/json-example/images/cat-2.jpg&quot;   },   {     name: &quot;Barksalot&quot;,     species: &quot;Dog&quot;,     birthYear: 2008,     photo: &quot;https://learnwebcode.github.io/json-example/images/dog-1.jpg&quot;   },   {     name: &quot;Meowsalot&quot;,     species: &quot;Cat&quot;,     favFoods: [&quot;tuna&quot;, &quot;catnip&quot;, &quot;celery&quot;],     birthYear: 2012,     photo: &quot;https://learnwebcode.github.io/json-example/images/cat-1.jpg&quot;   } ];      function petTemplate(pet) {   return `               &lt;div class=&quot;animal&quot;&gt;                             &lt;img class=&quot;pet-photo&quot; src=&quot;${pet.photo}&quot;&gt;                &lt;h2 class=&quot;pet-name&quot;&gt;${pet.name} &lt;span class=&quot;species&quot;&gt;(${pet.species})&lt;/span&gt;&lt;/h2&gt;                        &lt;/div&gt;             `; }  document.getElementById(&quot;app&quot;).innerHTML = `             &lt;h1 class=&quot;app-title&quot;&gt;Pets (${petsData.length} results)&lt;/h1&gt;             ${petsData.map(petTemplate).join(&quot;&quot;)}                `;  .img {   max-width: 400px;   position: relative; }  .app-title {   text-align: center;   font-weight: normal;   font-size: 2.6rem; }  .animal {   max-width: 650px;   padding: 20px;   margin: 30px auto;   background-color: #fff;   box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.2);   overflow: hidden; }  .animal h4 {   margin: 0 0 6px 0; }  .pet-photo {   float: left;   width: 100%;   display: block;   transition: all linear 0.7s;   margin-right: 15px;   position: relative; }  .pet-name {   font-size: 2rem;   font-weight: normal;   margin: 0 0 1rem 0; }  .species {   font-size: 0.9rem;   color: #888;   vertical-align: middle; }  &lt;div id=&quot;app&quot;&gt;&lt;/div&gt; &lt;script src=&quot;main.js&quot;&gt;&lt;/script&gt;  Thank you. Edit - Want it to look something like this  need to show the text on hover with a black overlay appearing on the back of the text (when hovered on)
914
I want to overlay one image with another using CSS. An example of this is the first image (the background if you like) will be a thumbnail link of a product, with the link opening a lightbox / popup showing a larger version of the image.   On top of this linked image I would like an image of a magnifying glass, to show people that the image can be clicked to enlarge it (apparently this isn't obvious without the magnifying glass).
43479
JPEG, GIF and PNG can be displayed with the img tag and will work in all browsers, the object element can be use for displaying images specifying its MIME type, but what other graphic formats are supported by img or object tag in most browsers without installing plugins? (TIF, SVG, PCX, PICT, etc..)
69212
In a software diagram, I'd like to be able to represent multiple instances of an object by two rectangles with one of them slightly shifted. I recently learned about the pic style so I'm using it with two nodes to achieve what I want.  The following example does work, but I'd like to know if I can do the same without using the fill=white. My hack kind of assumes the entire picture background is white and that may not always hold. I'd like to be able to crop the unwanted picture part out.  \documentclass[crop,border=3pt]{standalone}  \usepackage{pgf,tikz} \usetikzlibrary{positioning}  \begin{document} \begin{tikzpicture}[     every node/.style={font=\sffamily\small},     block/.style={         rectangle, draw, align=center, minimum width=2cm,         minimum height=1.4cm, font=\sffamily\small     },     multinode/.pic={         \node [block] at (0.1,0.1) {};         \node [block, \tikzpictextoptions, fill=white] at (0,0) {\tikzpictext};% &lt;-- FILL WHITE     } ]     \node [block] (STG) at (2,5) {single\\instance};     \pic [pic text={multi\\instance}] at (5,5) {multinode}; \end{tikzpicture} \end{document}   The following images show first one version with the fill white hack, and then one version without it.
121153
Example:  &lt;svg&gt;&lt;text&gt;Hello World&lt;/text&gt;&lt;/svg&gt;?
23351
Is it possible to dynamically create and modify images on a per pixel level in JavaScript (on client side)? Or has this to be done with server based languaged, such as PHP?   My use case is as follows:   The user opens webpage and loads locally stored image A preview of the image is displayed The user can modify the image with a set of sliders (pixel level operations) In the end he can download the image to his local HDD   When searching in the web I just found posts about using IE's filtering method, but didn't find anything about image editing functions in JavaScript.
68916
When you add a new mesh, the overlay appears in the bottom left of the screen allowing you to change certain properties. Recently, however, when I try to click on any setting, the box disappears. I've tried clicking, dragging and any combination of both, but the overlay doesn't respond and vanishes as soon as you release the mouse button.    Obviously you only get one chance to change these properties - so I'm stuck without it.  Could an add-on be causing the problem?
42611
Using beamer with the , I want to have a global transition effect (a fast fade) which I set using the following code:  \addtobeamertemplate{background canvas}{\transfade[duration=0.2]}{}   as found on  answer.  However, doing it messes up with my slides settings. It doesn't change every slides, only the \section ones that are slightly shifted to the right, adding a white line on the left, as seen here:   I tried using XeLaTeX and LuaLaTeX, as they are the only compilers I could use for my current font, but they both have the same issue.  It probably comes from the theme, however I have no clue why it would happen or how to fix it.  Edit :   \documentclass{beamer} \usetheme{m} \addtobeamertemplate{background canvas}{\transfade}{}  \begin{document} \section{test} \end{document}   Requires the mtheme to work
10439
I need to use a JavaScript patch in my Google Sites, but the problem is I don't understand how to place them and use it as Google Gadget.  &lt;!DOCTYPE &lt;strong class="highlight"&gt;html&lt;/strong&gt; PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;&lt;strong class="highlight"&gt;html&lt;/strong&gt; xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;title&gt;Untitled Document&lt;/title&gt; &lt;script language="javascript" type="text/javascript"&gt; var timerid = 0; var &lt;strong class="highlight"&gt;images&lt;/strong&gt; = new Array(  "image1.jpg",             "image2.jpg",             "image3.jpg"); var countimages = 0; function startTime() {     if(timerid)     {         timerid = 0;     }     var tDate = new Date();      if(countimages == &lt;strong class="highlight"&gt;images&lt;/strong&gt;.length)     {         countimages = 0;     }     if(tDate.getSeconds() % 5 == 0)     {         document.getElementById("img1").src = &lt;strong class="highlight"&gt;images&lt;/strong&gt;[countimages];     }     countimages++;      timerid = setTimeout("startTime()", 1000); } &lt;/script&gt; &lt;/head&gt;  &lt;body onload="startTime();"&gt; &lt;img id="img1" src="image3.jpg" /&gt; &lt;/body&gt; &lt;/html&gt;   I'm hoping for specific instructions using the JavaScript code I provided since I've found general Google Sites embedding instructions unfathomable. However with specific instructions I will be able to figure out how to use scripts in Google Sites in the future as well.
66668
I would like to expect the below output in my LaTeX.    The figure caption should be place in the bottom of the figure. The text should be plurred with opacity. How do achieve this?  My MWE is:  \documentclass{book} \usepackage{graphics} \usepackage{caption} \DeclareCaptionFormat{overlay}{\gdef\capoverlay{#1#2#3\par}} \DeclareCaptionStyle{overlay}{format=overlay} \begin{document}  \begin{figure*} \includegraphics{example-image-a} \caption{Many of the simple rexpressions in algebra can be thought of     interms of the areas of rectangles.} \end{figure*} \end{document}
23427
I use \includegraphics command to insert image to the document. But how can I add a border around this image w/o any margin between border lines and image? It seems to be very easy, but I can't find it in the documentation.
77189
I'm using new float enviroment to show some examples in my document. This  enviroment contains tcolorbox which provides a gray background. The main text in the enviroment is a mixture of plain text and code blocks (in lstlisting env). Each float should have it's own caption and label.  In style file:  \usepackage{newfloat} \DeclareFloatingEnvironment[name={Example}]{suppfigure}   In the main document:  \begin{suppfigure}[!h] \caption{Some code example}\label{suppfigure1} \begin{tcolorbox}[arc=0mm, left=1pt, right = 1pt, boxrule=0mm,colback = {shadow-gray}]   Text  \begin{lstlisting}  int i = 0;  \end{lstlisting}  Some more text  \begin{lstlisting}  String.Format("{0,10:0.0}", -123.4567);   \end{lstlisting}  \end{tcolorbox}  \end{suppfigure}   How can I allow page break inside the suppfigure to extend my example to multiple pages?
70014
I have some jpg images and I need for each of them to have a transparent background.  I have GIMP as a graphic tool.   I need to put them in a web page and I need to see just the main element and have a transparent background.
38609
On our team site we have added a web part that is a "Picture Library Slideshow" web part. Currently clicking on the images that scroll in the slideshow directs the browser to just the image's URL. I would like to modify that to point to any other URL of my choice.   I have tried forcing a modification of the javascript that is generated by the slideshow webpart using my own script on the page. Looking at the source, the Picture Library uses a var that actually sets the links, it's called "linkArray":  var pictureArray = ['http://intranet/HomePicture/_w/image1.jpg','http://intranet/HomePicture/_w/image2.jpg']; var linkArray = ['http://intranet/HomePicture/image1.jpg','http://intranet/HomePicture/image2.jpg']; var titleArray = ['','']; var descriptionArray = ['','']; var heightArray = [268,268]; var widthArray = [383,383];   Using my own script I tried to clear out the array and insert my own links into it, but for some reason the links only update (i.e. my script's function runs) after the first image changes. Even if I manually change the first image's href tag, the script still thinks the "first" image is the second one that the slideshow scrolls to. Is there a way to force the function to overwrite the existing javascript immediately on page load?
32716
How do I create this type of effect with an image? I'm wondering how to get the thick edges and the tilted look. Is there an online tool that will convert a flat image to look like this?
89118
In my plugin, I would like to add two buttons to Media Manager (to the left of "Insert Into Post" in "media-toolbar-primary" section), and connect a jQuery action to it.   First one - The "Select All" button shoud allow to select all availabe images (only images), depending on option value selected (eg. All Media Items, Uploaded to This post etc). So if "All Media Items" is selected - all images available will be selected, if "Uploaded to This post" is selected - only images attached to current post will be selected. Second one - "Custom Insert Into Post" - will get images data for all selected images (full size image source, alt text, size etc that are available) and while allowing to wrap them in aditional html code - return code to tinymce editor.   Returned code for second button could look this way:  &lt;ul&gt;   &lt;li&gt;&lt;img src="full/path/to/001.jpg" alt="alt text 1" /&gt;&lt;/li&gt;   &lt;li&gt;&lt;img src="full/path/to/002.jpg" alt="alt text 2" /&gt;&lt;/li&gt;   &lt;li&gt;&lt;img src="full/path/to/003.jpg" alt="alt text 3" /&gt;&lt;/li&gt;   &lt;li&gt;&lt;img src="full/path/to/004.jpg" alt="alt text 4" /&gt;&lt;/li&gt;   &lt;li&gt;&lt;img src="full/path/to/005.jpg" alt="alt text 5" /&gt;&lt;/li&gt; &lt;/ul&gt;   As far as I understand, the only way is to use override appropriate Backbone view, but beside that, thats all I know for now.  Thanks for help.
44813
How do I create an image behind text in Google docs (the text editor part)?
109564
2.81a here. I am trying to add a "background image" similar to how , so that I see a screen that looks something like this:    However I can't figure out how/where to access this screen in 2.81a as the UI is wildly different. Any ideas?  I am new to Blender so if you can provide a click-by-click list of instructions it would be enormously appreciated!