Create a new server on discord and invite absolutely no one. (If you have not done so already)
Send your gif/image in said server.
Right click the gif/image after it's sent (or press for 3secs on mobile) and select Copy Link (Copy media link if on mobile)
In where you would like to paste the gif/image, type 
Done!
@Valheru
Alternate method for if you do not use discord: (Not guaranteed to work)
Upload the gif/image to Google photos or Icloud photos. (If you use an iOS device, just put it in your camera roll and sync the photos app with icloud.).
Go to a browser version of the service of your choice, in which the gif/image is uploaded, and locate the gif/image.
Double click on the icon of your gif/image in the menu and when a menu with just the gif/image of your choice opens, right click (or long press) and select Copy Image Link.
@AN2Felllla LOL
Wow that's a very descriptive way of saying  @FeiWu lol
Ahhh. Thank you. I knew the code, I just was unsure how to get the url@FeiWu
Copy Link
(Copy media link
if on mobile)
@Valheru
Alternate method for if you do not use discord: (Not guaranteed to work)
Copy Image Link
.literally no difference besides your posting a gif instead of an image.
Same with posting an image