Skip to content

Instantly share code, notes, and snippets.

View gpolguere's full-sized avatar
🦁

Gil Polguère gpolguere

🦁
  • Merci-Michel
  • Paris
View GitHub Profile
@spyesx
spyesx / raw_to_jpg.php
Last active September 23, 2024 07:56
Convert RAW images to JPG. Actually whatever you want as long as these formats are supported by ImageMagick.
<?php
/*
Convert RAW images to JPG. Actually whatever you want as long as these formats are supported by ImageMagick.
https://www.imagemagick.org/script/formats.php
Best used in a terminal to avoid Apache's timeout :)
ex : php raw_to_jpg.php
Folder tree
@leo-cheron
leo-cheron / png-to-VP9.command
Last active November 29, 2024 10:21
FFMPEG - mp4 & webm conversion
ffmpeg -framerate 25 -y -start_number 1 -i %04d.png -pass 1 -c:v libvpx-vp9 \
-b:v 1800k -maxrate 2000k -minrate 1200k \
-deadline best -cpu-used 0 \
-auto-alt-ref 1 -lag-in-frames 25 \
-f webm /dev/null
ffmpeg -framerate 25 -start_number 1 -i %04d.png -pass 2 -c:v libvpx-vp9 \
-b:v 1800k -maxrate 2000k -minrate 1200k \
-deadline best -cpu-used 0 \
-auto-alt-ref 1 -lag-in-frames 25 \
output.webm
@patriciogonzalezvivo
patriciogonzalezvivo / GLSL-Noise.md
Last active December 18, 2025 14:02
GLSL Noise Algorithms

Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);