Comments (6)
@a0s, I don't see currently any straight ways to implement that, but I want to understand what do you want to develop. Something like this?
from vue-advanced-cropper.
@Norserium I am developing some sort of online image editor. It works like a stack of modifications for basic image. It operates on OffscreenCanvas'es. Every change of modifier leads to real-time recalculating of final image (i draw final OffscreenCanvas to real html Canvas).
So, now i need to integrate briliant vue-advanced-cropper into my project (i need visual handler of crop operation mostly, not cropping action itself), I already tried to render canvas into blob than save it as dataUrl jpg/png/webp whatever, but it was deadly slow for some reason. Something inside vue-advanced-cropper doing very slow initialization during picture change, also some slow animations... But i dont need any animations, just as fast as possible updating. I tried to switch animations off with no big success.
So my idea is
- rewrite Cropper to good typed code with no warnings/errors from IDE. I started from 500+ errors, now its 100 left only. Ofc , most of errors were pretty easy like a replacing
this.smth
tosmth.value
orprops.smth
. - then, i am going to throw out everything related
img
and replace it with OffscreenCanvas. With well-typed code and hints from the IDE, this shouldn't be a big deal. Unfortunately the source code is not as well typed as I would like and there are many dubious places..
from vue-advanced-cropper.
@a0s, in other words, do you want to make something like this editor?
from vue-advanced-cropper.
I saw it. Any editor is sort of any another editor. I don't see how your editor's source code can help me, due its still using img
as the source but not the canvas.
hmm but maybe https://advanced-cropper.github.io/react-advanced-cropper/docs/tutorials/image-editor/#custom-background-component could be helpfull, will check it, thank you!
from vue-advanced-cropper.
@a0s, it's the react cropper, but it will be ported to Vue sometimes as a new major version.
I saw it. Any editor is sort of any another editor. I don't see how your editor's source code can help me, due its still using img as the source but not the canvas.
It uses canvas
under the hood as the source. The img
element presents also, but it not used by the cropper directly, I just use it to draw the image on the canvas.
from vue-advanced-cropper.
@Norserium Sounds like a solution for my question! I'll definitely test it when it becomes available.
from vue-advanced-cropper.
Related Issues (20)
- Missing stencil and duplicate view HOT 3
- Question: How to fit image to stencil, when it first loads HOT 2
- issue: getting canvas in composition api with <script setup> HOT 5
- I want to be able to edit the image preview list by clicking on it. HOT 3
- using image restriction 'none' and aspect ratio. HOT 7
- In Vue advanced cropper , the moving class (vue-rectangle-stencil--moving) is not removing automatically when I stop moving the mouse, but if I refresh the page once means , it is removing automatically and working as expected. HOT 1
- Saving/Retrieving cropper settings to re-apply at a later time HOT 1
- How to use defaultVisibleArea with values that have a very narrow or very wide size of square stencil HOT 1
- Wrong Width Height recognition HOT 2
- Image Cropping Failure for larger Images HOT 5
- The cropped image was found to be missing pixels HOT 1
- RTL Support Issue: Incorrect Cropper Behavior with postcss-rt HOT 1
- Test support / documentation
- yarn add vue-advanced-cropper@vue-3 can't be resolved to a satisfying range HOT 2
- Issue with Cropping HEIC Files on Apple Devices HOT 8
- maxCanvasSize is used but not defined
- currentStencilSize was mentioned but never processed HOT 1
- Set position of fixed stencil
- Missing Cookies on CORS requests
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-advanced-cropper.