Skip to content

If you copy the URL of a picture from google drive and insert it in the code, the link needs to be changed in order to take that picture. This tool modifies your link to be compatible.

Notifications You must be signed in to change notification settings

BaltacMihai/tool-link-converter-pictures-cloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

☁️ Google photo embeded Url ☁️

In some projects I did, I faced the problem that the URL of the pictures on google drive does not work. After looking for a solution I discovered that you need to change the URL. This became very frustrating when I had to always change the URL when testing. That's how I came up with this tool.

There are other sites that can do this, but they do not provide a script to transform your URL.

🔧 How to use this tool? 🔧

1️⃣Method 1 Classical Way1️⃣

Enter the tool's website (here) insert the URL in the first input and click on convert. To make sure it worked, the background image of the site will change in your image.

2️⃣Method 2 Embedded Function2️⃣

Copy the following tag and paste it into html before your js, to import the function first

    <script src="https://baltacmihai.github.io/tool-link-converter-pictures-cloud/JS/convert.js"></script>

To use the function you must insert as a parameter the URL of the picture in the drive. The function returns the modified URL.

    const newUrl = convert(oldUrl);

❗ NOTE : I do not recommend using photos from google drive, because they are harder to render (there may be a few seconds until they are rendered) and there is also the risk that the rendering will crash, so no image will be rendered❗

About

If you copy the URL of a picture from google drive and insert it in the code, the link needs to be changed in order to take that picture. This tool modifies your link to be compatible.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published