Skip to content

Instantly share code, notes, and snippets.

View xtellurian's full-sized avatar
🐐

Rian Finnegan xtellurian

🐐
View GitHub Profile
@xtellurian
xtellurian / Latency.csproj
Created November 23, 2019 07:00
Latency Tester
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
</PropertyGroup>
</Project>
from PIL import Image
img_path="path_to/image.tiff"
image = Image.open(jpg_path)
# get the current width and height
width, height = image.size
# Setting the points for cropped image
# you can change these values