Git Product home page Git Product logo

photo-editor's Introduction

Photo Editor

A photo editing application based on the Cropper.js.

Keyboard support

  • Esc: Cancel the cropping.
  • Enter: Complete the cropping.
  • Delete: Delete the uploaded or cropped image.
  • : Move the image to left by 1 pixel.
  • : Move the image to right by 1 pixel.
  • : Move the image to top by 1 pixel.
  • : Move the image to bottom by 1 pixel.
  • M: Enable to move the image by dragging.
  • C: Enable to crop on the image by dragging.
  • I: Zoom in the image.
  • O: Zoom out the image.
  • L: Rotate the image to the left.
  • R: Rotate the image to the right.
  • H: Flip the image on the horizontal.
  • V: Flip the image on the vertical.

Browser support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Opera (latest)
  • Edge (latest)
  • Internet Explorer 10+

License

MIT © Chen Fengyuan

photo-editor's People

Contributors

dependabot[bot] avatar fengyuanchen avatar gondar00 avatar u-u-z avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

photo-editor's Issues

Regarding Cropper size

Hello,

How can I create cropper size respective to the original image width and height?

New logo/icon

Hi, I am a graphic designer, I want to help others in graphic design.

After I reviewed your project, you have no logo on this project. Therefore I want to contribute to this project by creating a new logo / icon. what do you think?

after editing photo

can I save the photo edited by users by clicking somewhere?
there is api for this?

New icon proposal

Hi, I am a graphic designer, I want to help others in graphic design.

After I reviewed your project, you have no logo on this project. Therefore I want to contribute to this project by creating a new logo / icon. what do you think?

为什么nav的事件会触发多次

<nav class="nav" @click="click"  >
<button type="button" class="nav__button nav__button--success" data-action="" title="测试" ><span class="fa fa-check"></span></button>
</nav
   click({ target }) {
      const action = target.getAttribute("data-action") || target.parentElement.getAttribute("data-action");
      console.log('traget',action);
      if (action) {
        this.$emit("change", action);
      }
    }

点击一下,会触发多次,有时一次,有时二次...

can't be found on npm

This is a great idea very pleased I found it. Currenty I am unable to find it the npm to install.

Could this be added?

Drop by code

I have a question. Could I create a drop by code?

For example call function named drop(int top, int width, int height)

Mininfied examples?

Your example is much more difficult than it should be to learn from, because it's checked in minified, and relies on vue, which many of your users won't know

Have you considered giving an example in vanilla that isn't minified, so we can work with it in the debugger directly, and not guess what the one-character variables are, what $broadcast does, etc?

Thanks for considering it.

development 和 production表现不一致

您好:
iOS 12,微信 7.04
当我运行 npm run dev的时候,在微信中打开,图片宽高显示失真;

WechatIMG637
当我运行 npm run build的时候,本地起了个服务,然后在微信中打开,图片显示正常;

WechatIMG640

请问在打包的时候有做什么处理吗?

is way to free move .toolbar on site ?

This :
<div class="canvas">
   <div class="editor"></div>
    <div class="toolbar"></div>
</div>

to like this (to free move aniwhere in site):
<div class="toolbar"></div>
<div class="canvas">
   <div class="editor"></div>
</div>

image upload ajax

I want to upload the processed image i know it's base_64 encoded but i can't find any function on download button click please help me to find the function which is working only on download button @fengyuanchen

How can I run code inside "src" folder

Hello,

I appreciate the work done on this impressive project. As someone relatively new to advanced JavaScript libraries, I'm seeking guidance on running the index.html file from the src folder. Currently, upon running the index.html file (from the src folder), only a blank page is displayed.

My goal is to comprehend the codebase and subsequently customize it to suit my requirements. While I recognize that my question might be basic, I would greatly appreciate your assistance as I embark on this initial phase of exploration and learning.

Thank you for your support.

Changes

To make changes to the html code, me need to edit the file main.js?

get image blob without cropping

hi
know I can get image as blob after make any crop to the image , but I want to take image as blob without cropping it.

Thanks
Maher

请问cropperjs能与viewerjs结合吗,并使用到react项目里

目前viewerjs里需要增加一个“截图”按钮,尝试了一下viewerjs 的toolbar里自定义按钮置入cropperjs截图功能,做一个类似photo-editor的功能。photo-editor很好,但是没有类似viewerjs的缩略图列表,而是一张张的上传。请问您能提供思路吗

Exporting as a plugin for Vue.js ?

Hi !

this is great stuff here :) Nice job !

I am currently developing a website with Vue.js and I saw that you used it in this project.

Would you consider trying to make a Vue.js component so that the community would use Cropper easily ?!

That would be awesome !

Best regards.

Full Version of App.js

Can you please provide the complete app.js. At present it is minified with the source code.
Regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.