Categories
Dev

Image Crop using Flash

Image CropI have been following plentyoffish.wordpress.com for a while now.

I deeply admire what as been achieved in POF and am always tryng to learn from the ones who make it.

The other day I commented one of the posts about creating a script to crop images.

As I have been tryng to work out something similar to my sites I decided to give it a try using sephiroth.it – Image Crop – I know its an old version (Flash Player 6) and as Kebie said as a comment in the plentyoffish post it doesnt use the new ability to do this client side.

Anyway as I dont mind doing it server side I build this: image crop script example

Feel free to use it as you want. Use it, change it, sell it… whatever 🙂

zip file: download

In simple terms there are 2 folders – images and tb (thumbnails)

You choose one of the files from the images folder. It sends to flash the message and then flash sends back the coordenates of your crop.

The crop is done with php.

Any doubts contact me.

Images from www.sxc.hu

P.S. – I will try to find a couple of hours to make it resize.

Edit:

I found and am using resize before upload it does what it says using flash. There is still a minor bug with transparent images and the image formats are limited but I think it’s well worth it.

Categories
Ubuntu

Ubuntu 8.04 Audio Flash e Firefox 3 – Sem som

Passei semanas com problemas de conflito entre o flash a rodas no firefox 3 e o ubuntu 8.04.

Quando abria o firefox e era chamado o plugin de flash todo o audio no ubuntu deixava de funcionar.

O inverso também de verificava, ou seja, ao iniciar som no ubuntu o flash ficava sem som e em alguns casos até acabava por causar um crash no firefox.

A solução foi super simples:

Bastou instalar o libflashsupport e reiniciar o firefox: sudo apt-get install libflashsupport

Agora posso ouvir musica e ver videos ao mesmo tempo. Multi tasking 🙂