Tip o’ the Week 458 – Grabbing pictures from websites

clip_image001There are plenty of reasons why you might want to get the URL of a picture that is embedded on a web page, and some of them don’t even risk breaching the copyright of the image’s owner or page author!

Legitimate examples might include things like downloading a company logo from its website so you can include it in a PowerPoint slide; try going to just about any major company site and you’ll probably find it’s not straightforward to save the image file. Ditto all sorts of clever pages that might stop you simply saving the picture to your PC.

clip_image003clip_image005Normal behaviour is, mostly, to just right-click on an image and in Edge, you’ll be able to save the picture (or use Cortana to try to give you more details on the image, even trying to guess what’s in the image depending on how straightforward it is – it’s surprisingly good). Ditto, if you’re using Chrome, except you can search Google instead. Try the same on a company logo, and you may find you won’t get the option to save or search.

If you want to grab the actual URL for an image on a web page, the clip_image006foolproof way of getting it is to look at the source – if you don’t mind fishing through maybe a few thousand lines of HTML. It’s not too bad if the image is at the top of the page, but it could prove tedious if elsewhere. In Edge, an easier solution would be to right-click on the image and choose, Inspect element. You may need to press F12 to get these options in your right-click menu. Chrome has a similar thing, simply called Inspect, and can be invoked by CTRL-SHIFT-I.

The Inspect Element funciton in browsers is designed to help web page debugging; it’ll let a user or designer jump straight to the section of a web page’s source, and inspect or even modify the code behind the page.

clip_image008As an example, right-click on the logo on www.microsoft.com and Inspect Element. You’ll see the highlighted section is the bit where the logo sits on the page, and immediately next in the hierarchical representation of the page code, you’ll see the <img> tag, denoting that this pertains to the image itself.

Look for the src= part, double-click on it and you’ll see the URL of the image in an editable text box, meaning you can easily copy that to the clipboard and get ready to paste it wherever you need it clip_image010to go. Try pasting it into a new browser tab just to check that all you’re getting is the logo.

clip_image011

Using a search engine

Of course, there may be easier ways to get an image – using Bing or Google search, for example.

Bing is actually quite a bit better in this regard. When you click on an image in the results from Bing’s Image search, you’ll see a larger preview of the picture along with a few actions you can take – like jump to the originating page; search for other sizes of the same image; use Visual Search to run a query on just some selectable portion of the image; or simply just view it in the browser, thereby opening just that image and showing you the direct URL to it.

In the case of both Google and Bing, if you click on “Share”, then you’ll get a link to the search result of that image rather than the picture itself – so if your plan is to embed the image in another web page or upload it to some other place, then you’ll be frustrated.

clip_image012Another legitimate use of the original URL for a logo might be to change the icon in Teams – assuming you have permissions to Manage a team site (click the ellipsis to the right of the clip_image013name and if you’re suitably perm-ed up, when you click on the Manage Team option, you’ll see a little pencil icon on the logo if you hover over it. Click that to change the picture).

Simply choose Upload picture, paste in the URL of the logo you want to use and you’re off to the races.

Figuratively speaking, anyway. You might have to jigger about with the proportions of the image by downloading it first and editing it elsewhere, as the image will need to be more-or-less square. Built-in icons in Teams appear to be 240×240 pixels in size so you could try to target that if you’re resizing.

Tip o’ the Week 455 – Pin your PMAs

clip_image002Progressive Web Apps were covered some months ago in ToW 426, and are seen by many as the next generation of mobile apps. They provide a handy way of meeting the needs of a website suitable for mobile browsers as well as a way of delivering an app-like experience to multiple devices of varying sizes, without needing the developers to target specific platforms individually.

Microsoft published a bunch of 3rd party PWA apps directly into the Microsoft Store (eg start with SkyScanner then click on “Microsoft Store” when opened with the Store app itself rather than the web UI), though there haven’t been any new ones for a while.

Google is also throwing its weight behind PWAs – so much so, that version 70 of the Chrome browser has support for PWAs that can be installed to look like a desktop app on Windows, so when the PWA is running it hides the browser UI and is launched from either within Chrome directly, or from the traditional Windows app UI.

clip_image004clip_image005

clip_image007When installed, eg https://app.ft.com, via the Chrome browser, the PWA behaves a lot like a desktop app – it can be found by typing its name on the Start menu, and can be quickly pinned to the Start menu or taskbar.

clip_image009That said, Edge browser users can treat pretty much any website in that way – if you browse to a PWA or simple page you like, as well as adding it to favourites/toolbars etc, you can pin it to your taskbar or start menu by going to the settings menu in the top right. Otherwise, when opening PWAs in Edge they look and behave the same as in other ways, though the Edge toolbar remains.

To look for dedicated PWA resources, check out this list, or look here, here or here.