PHP & More

A technical blog about programming in PHP and about technology in general: programming, workarounds and troubleshooting

I have received by e-mail a rotated video in the ‘flv’ format. The video was supposed to be a vertical one, but it turned out to be horizontal, that is ROTATED. So, I wrote a little program to rotate it back using libming. There are two things to take care of when processing the input …

Continue reading

Browsers supporting HTML5 allow you to draw on the browser’s screen without preparing an image file before. Drawing on a canvas is done using the wonderful Javascript language. If you want to draw a 2-dimensional image on canvas element ‘cnv’, get the drawing context using: var ctx = cnv.getContext(“2d”) And use that context to draw …

Continue reading