IOPaint icon indicating copy to clipboard operation
IOPaint copied to clipboard

how can I get the download url of the cleaned image?

Open yinghao2016 opened this issue 3 years ago • 2 comments

Thanks for looking this question ! When I click the download icon , the cleaned image can be downloaded successfully. But I want get the image output url. I check in js files like '2.ee9dcc6c.chunk.js' and 'main.5cf6948e.chunk.js' and try to find the cleaned image download url, but I failed. Anybody know how can do it? Thanks again!

yinghao2016 avatar Jan 03 '23 02:01 yinghao2016

Downloading is trigged here: https://github.com/Sanster/lama-cleaner/blob/main/lama_cleaner/app/src/components/Editor/Editor.tsx#L1059 and using this function https://github.com/Sanster/lama-cleaner/blob/main/lama_cleaner/app/src/utils.ts#L25

Sanster avatar Jan 03 '23 02:01 Sanster

Hello,@yinghao2016, Have you implemented the url address function for downloading pictures? Can you share this function?

nottellyou avatar Apr 23 '23 10:04 nottellyou