slince-zero / imaker Goto Github PK
View Code? Open in Web Editor NEWCreate striking covers effortlessly with our easy-to-use IMaker.
Home Page: https://img-maker.vercel.app/
License: GNU Affero General Public License v3.0
Create striking covers effortlessly with our easy-to-use IMaker.
Home Page: https://img-maker.vercel.app/
License: GNU Affero General Public License v3.0
建议添加是否圆角的选项
目前,我已经完成点击‘截选按钮’ 出现一个可以拖动、拉伸的框框,但是下载选中区域的图片,这个功能遇到了一些问题。
问题如下:
图片和一些编辑操作都在 CenterBoard 组件中,所以在最外层的div里面写一个ref={imageContainerRef}>
,可以很容易的拿到整个页面的dom元素,然后再借助 dom-to-image 这个库就可以实现下载。
但是,我将一个名为ScreenCapture 的组件放在了 CenterBoard 组件中,所以,我不知道应该怎么拿到选中区域的图片,希望有人可以帮我解决下这个问题。
I have currently implemented a feature where clicking on a 'crop button' creates a draggable and resizable box. However, I'm facing some issues with downloading the selected area of the image.
The problem is as follows:
Both the image and some editing operations are within the CenterBoard component. So, by adding a ref={imageContainerRef}
to the outermost div, I can easily access the DOM elements of the entire page, and then with the help of the dom-to-image library, I can achieve the download functionality.
However, I have a component called ScreenCapture placed within the CenterBoard component. Therefore, I'm unsure how to access the image of the selected area. I hope someone can help me resolve this issue.
1,现在下载的文件名是image.jpg,建议改成日期格式+搜索关键词,比如:20240510-223500(blue_sky),不然下载多个图片的话文件名会很混乱。
2,选择不同的图片尺寸,是否可以自行选择图片区域,目前是直接裁切,可能不是实际想要的部分。
标题&文案的位置设置:
上、中、下和左对齐、居中、右对齐。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.