最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Flash based cropper like this, but with source or customizable? - Stack Overflow

programmeradmin0浏览0评论

I am looking for a Flash based image uploader with resize and possibly rotate function. I have checked many possibilities, and the very best in simplicity and unser experience I found is Kroppr at a very affordable €29/license.

The downside is, it comes with encrypted PHP code to bind the product to a subdomain. That is understandable, but while I'm perfectly happy to pay money for a tool as great as that, and ready to sign all sorts of legal agreements to protect the license, I am not ready to use encrypted PHP code, especially not from an outlet that doesn't even have a postal address on its web site.

Does anybody know an Open Source or commercial solution that comes close to Kroppr and ships with source, or allow for full customization and free definition of the server-side backend?

The features in detail:

  • Rectangular selection to crop image, slider or similar to zoom
  • Optionally: Rotating
  • "Accept" and "Reset" buttons, "accept" triggers a call to the server and submits the image
  • Full visual customizability (at least background and text colours)
  • Possibility to rename all controls

The server side technology would preferably be PHP.

I am looking for a Flash based image uploader with resize and possibly rotate function. I have checked many possibilities, and the very best in simplicity and unser experience I found is Kroppr at a very affordable €29/license.

The downside is, it comes with encrypted PHP code to bind the product to a subdomain. That is understandable, but while I'm perfectly happy to pay money for a tool as great as that, and ready to sign all sorts of legal agreements to protect the license, I am not ready to use encrypted PHP code, especially not from an outlet that doesn't even have a postal address on its web site.

Does anybody know an Open Source or commercial solution that comes close to Kroppr and ships with source, or allow for full customization and free definition of the server-side backend?

The features in detail:

  • Rectangular selection to crop image, slider or similar to zoom
  • Optionally: Rotating
  • "Accept" and "Reset" buttons, "accept" triggers a call to the server and submits the image
  • Full visual customizability (at least background and text colours)
  • Possibility to rename all controls

The server side technology would preferably be PHP.

Share Improve this question edited Jan 8, 2010 at 10:59 Pekka asked Dec 29, 2009 at 12:35 PekkaPekka 450k148 gold badges984 silver badges1.1k bronze badges
Add a comment  | 

9 Answers 9

Reset to default 7

http://deepliquid.com/content/Jcrop.html i love this one, every easy to use and tons of features. i know your searching a flash cropper but this question is tagged with js too so....

I found these three image utilities during my search:

  • Flex Image Cropping Component
  • HOW TO CROP AND RESIZE AN IMAGE USED AS BACKGROUND FOR CANVAS
  • Building an image-viewing widget with ActionScript 3.0

The first one is an open source flex component using an MIT license. The second one is a how to,with full source available. It doesn't have a sizable box, but it seems ok otherwise. The last one is also a how to article from adobe.com with source available.

Here is a list of good javascript based croppers:

  • Yahoo! UI ImageCropper
  • Jcrop
  • MooCrop
  • UvumiTools
  • PHP & jQuery Image Upload and Crop

Here is a list of action script based croppers:

  • Flex Image Cropping Component
  • Image Crop

http://www.adylevy.com/index.php/2009/07/22/multiple-files-uploader-with-preview-on-client-side/

OR

http://www.resize-before-upload.com/

...took a bit of searching =)

I would take a look at the free pixlr editor and their developers API : http://pixlr.com/wiki/developer

I've used RadActive's I-Load component before, with great success. The UI customisation options are a little limited, but as far as functionality goes, I'm pretty sure it meets all your requirements.

EDIT: You don't specify what server-side technology you're using (if any). I'm pretty sure I-Load is designed for ASP.NET - this may or may not be an issue for you.

This is also a nice once and its only $10.

http://www.shift8creative.com/projects/agile-uploader/index.html

Still doesn't have image rotation/cropping. I most definitely do plan to add that, but after checking out all the things I could find I still wasn't happy. I researched out all the particulars and just ended up building my own. You're welcome to use it if you like and haven't found something else by now. Keep checking the link, I'll update it to include the rotation and crop feature along with multiple image uploads.

Something like this? http://matrixoft.infunity.com/agents/calvin/tmp/forPekka.html

I'm perfectly happy to pay money for a tool as great as that

To carry out the responsibility of posting the answer for stackoverflow users, here is part of the crop image code:

var tNewImage:BitmapData=new BitmapData(mouseX-vCropX,mouseY-vCropY,true,0);
iImg.getChildAt(0).x = vSize/2 -vCropX;
iImg.getChildAt(0).y =  vSize/2 -vCropY;
tNewImage.draw(iImg);

Where iImg is the movieclip containing the image with the image center positioned at (0,0) , vSize is the image dimension, vCropX and vCropY is the top left cropping coordinate. The tNewImage BitmapData is used for constructing the new Cropped Bitmap image

发布评论

评论列表(0)

  1. 暂无评论