Categories
Dev

Flash – Resize and Crop – Faces Thumbnails

Flash Resize and CropAfter my last post about image resize using flash I did some research and found this:

Flash based cropping tool released (LGPL)

I tried to get it to work and saving the crop server side.

I manage to get to work pretty easy on my local server but after uploading it the php was giving me trouble.

So I stripped it down and now its working great: flash resize and crop

If you want the source: download

I found a very cool script using JavaScript that does almost the same as this one: Prototype JavaScript Image Cropper UI

About flash client side resize, no luck.

I found several Java ones and also I know that is possible to do it in flash but the methods I found were to explode the image pixel by pixel and then pass it like that into php. From what I could understand quality problems and flash player frozes on large images were the problems using that option.

Anyway. I think this was a great step foward.

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 🙂