Giter Site home page Giter Site logo

slince-zero / imaker Goto Github PK

View Code? Open in Web Editor NEW
246.0 246.0 23.0 15.04 MB

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

JavaScript 1.74% HTML 0.74% TypeScript 96.13% CSS 1.40%
image nextui react tailwindcss

imaker's People

Contributors

slince-zero 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

imaker's Issues

[求助]——下载选中区域的图片功能

目前,我已经完成点击‘截选按钮’ 出现一个可以拖动、拉伸的框框,但是下载选中区域的图片,这个功能遇到了一些问题。

问题如下:

图片和一些编辑操作都在 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,选择不同的图片尺寸,是否可以自行选择图片区域,目前是直接裁切,可能不是实际想要的部分。

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.