scaleflex / filerobot-image-editor

Edit, resize, and filter any image! Any questions or issues, please report to https://github.com/scaleflex/filerobot-image-editor/issues
MIT License
1.27k stars 322 forks source link

Clicking On Effects & Filters Button In Editor But Without Selecting Any Effect/Filter Option,I Click On Apply Button Directly Then Not Get Image Of Canvas In My Image Tag In HTML .How Can I Get That in js code ? Plz Provide Suitable Solution... #381

Closed YashpalModi closed 1 month ago

YashpalModi commented 10 months ago

On Clicking Effects & Filters Button In Editor ,Without Selecting Any Effect/Filter Option I Click On Apply Button Directly Then Not Get Image Of Canvas In My Image Tag In HTML .How Can I Get That in js code ? Plz Provide Suitable Solution...

Screenshot from 2023-09-11 15-16-42 Screenshot from 2023-09-11 15-20-27 Screenshot from 2023-09-11 15-20-45 Screenshot from 2023-09-11 15-20-50

Issue I m facing is I Click On Effects & Filters Button In Editor & Without Select Any Effect/Filter Option ,I Click On Apply Button Directly Then Not Get Image Of Canvas In My Image Tag In HTML .How Can I Get That in js code ? Plz Provide Suitable Solution... Thanks In Advance, Yash.

AhmeeedMostafa commented 10 months ago

@YashpalModi ur question is not clear for me, I see the title is something and the description is another thing,

If u meant how to get the image after saving, u get the image and its state (the properties applied to it) through the onSave function

YashpalModi commented 10 months ago

Issue I m facing is I Click On Effects & Filters Button In Editor & Without Select Any Effect/Filter Option Click On Apply Button Then Not Get Image Of Canvas In My Image Tag In HTML .How Can I Get That in js code ? Plz Provide Suitable Solution...

AhmeeedMostafa commented 9 months ago

@YashpalModi you should use onSave property, and provide a callback function to it that will receive in the image's data then u should provide either the base64 to ur img tag or convert the canvas to url and provide it to ur img tag.