Skip to content

Instantly share code, notes, and snippets.

View MatheusHenriq's full-sized avatar
🎯
Focusing

Matheus Henrique de Souza Fontenele MatheusHenriq

🎯
Focusing
  • Obi.tec
  • Parnaíba, Piauí, Brasil
View GitHub Profile
@ankit0812
ankit0812 / FairPlayDemoController.swift
Created November 23, 2021 11:39
DRM Fairplay Integration in iOS (Swift) || Sample ViewController
//
// FairPlayDemoController.swift
// FairplayTestProj
//
// Created by KingpiN on 22/11/21.
//
import UIKit
import AVKit
import AVFoundation
@MichaelPolla
MichaelPolla / github-resize-pictures.md
Last active July 5, 2024 21:21
Markdown - Resize pictures in GitHub, including in comments comment

Markdown - Resize pictures in GitHub

I found that the "best" way is to use HTML, as it works both in Readme/.md files and also in comments (within Issues, Gist...)

E.g. when adding/editing a comment (within Issues, Gist...) :

  • Upload the picture by drag-and-drop in the text field
  • replace ![image](https://your-image-url.type) with <img src="https://your-image-url.type" width="100" height="100">

As mentioned by @cbestow (thanks!), it's not mandatory to set both width and height. If only one is set, the other will be adjusted accordingly to preserve the aspect ratio of the image.