Commit Graph

55 Commits (dcc1a8024e7a71a62328fde75bbed24e3be42a8a)

Author SHA1 Message Date
Abdullah Alfaraj 1aec59a1e3 use the silent method to export the mask and init image 2023-02-15 11:35:20 +03:00
Abdullah Alfaraj 870b67a63c silent version of setInitImage 2023-02-15 11:31:21 +03:00
Abdullah Alfaraj 3f057ffb14 error checking 2023-02-13 11:06:31 +03:00
Abdullah Alfaraj 8f1526df6f method to set visibility of a layer 2023-02-13 11:04:33 +03:00
Abdullah Alfaraj 14af005063 export the image with the same resolution as main document 2023-02-09 02:37:53 +03:00
Abdullah Alfaraj 8407087d6c attempt at creating a snapshot with no sliding 2023-02-05 17:23:40 +03:00
Abdullah Alfaraj ccac9a4be4 remove dead code 2023-02-04 22:46:19 +03:00
Abdullah Alfaraj 290be898a9 update the init image and mask preview in main tab 2023-02-04 21:22:26 +03:00
Abdullah Alfaraj bd8bb1d6d7 fix bug: submit new sd url will not do anything 2023-02-02 19:03:06 +03:00
Abdullah Alfaraj 874f804446 replace python server dependency for txt2img and img2img mode 2023-02-02 09:29:11 +03:00
Abdullah Alfaraj 34d8928898 all communication between plugin ui and proxy server is done through rest api 2023-02-01 12:34:53 +03:00
Abdullah Alfaraj 4cfc13fcc7 remove old exportPng dead code 2023-01-31 16:03:05 +03:00
Abdullah Alfaraj c1dd2d58f3 use base64 for img2img modes instead of path 2023-01-31 14:04:45 +03:00
Abdullah Alfaraj 28f884de64 fix prettier formatting 2023-01-31 07:34:57 +03:00
Abdullah Alfaraj 4c04a8ae6e remove sim from formatting 2023-01-31 07:09:06 +03:00
Abdullah Alfaraj d3e26771b8 remove compression from export. 2023-01-31 05:14:48 +03:00
Abdullah Alfaraj c557556e9c apply formatting to the code base 2023-01-30 02:00:05 +03:00
Abdullah Alfaraj 6a78d013f5 fix the bug switching between tabs will throw photoshop error message. 2023-01-27 10:08:34 +03:00
Abdullah Alfaraj 2af8b10bb8 only delete the layer if it's exist 2023-01-26 23:40:39 +03:00
Abdullah Alfaraj 98753acb73 selecting a layer should not change it's visibility 2023-01-25 22:54:45 +03:00
Abdullah Alfaraj 41ac8c56f2 add ui settings manager class for preset 2023-01-24 17:00:55 +03:00
Abdullah Alfaraj cd9e8fbfdb bug fix: resize correctly on silent import 2023-01-24 05:42:17 +03:00
Abdullah Alfaraj 52e9a2d254 create a session folder and place the generated images in it 2023-01-22 22:29:44 +03:00
Abdullah Alfaraj b874704e61 add support to switching between init images in the same session and editing the mask 2023-01-21 16:42:59 +03:00
Abdullah Alfaraj a44e6b40fe add a set init image button to the viewer tab 2023-01-20 15:47:50 +03:00
Abdullah Alfaraj 349bfe114a use width and height from rectangular selection area 2023-01-12 08:40:08 +03:00
Abdullah Alfaraj 8a5d9ee0e5 make layerToSelection work with multiple of layers 2023-01-12 05:30:26 +03:00
Abdullah Alfaraj 751e22de0a [bug fix]: async layer deletion 2023-01-12 01:29:31 +03:00
Abdullah Alfaraj 2c4e832c16 get final image width and height from the selection area 2023-01-11 00:39:39 +03:00
Abdullah Alfaraj 10cbb581a5 only create InitImage and InitMaskImage if their associate layers exist 2023-01-09 00:37:12 +03:00
Abdullah Alfaraj ee895db154 you can select the images you want to keep in the viewer tab and discard the rest 2023-01-08 19:09:40 +03:00
Abdullah Alfaraj 92791af10b delete init image and mask from the viewer when cleaning and then reload the viewer 2023-01-06 00:38:03 +03:00
Abdullah Alfaraj c84c9d0200 add init image and mask for inpainting and outpainting to the viewer tab 2023-01-05 21:54:32 +03:00
Abdullah Alfaraj d283730db8 link the mask related layers to viewer 2023-01-05 19:50:45 +03:00
Abdullah Alfaraj 32a02afeba add visibility func that control how to turn the layer on and off 2023-01-05 17:17:00 +03:00
Abdullah Alfaraj 97f44b090e refactor code to viewerImageClickHandler 2023-01-05 15:12:27 +03:00
Abdullah Alfaraj df70af875f export at the same resolution as the width and height sliders 2023-01-03 12:49:20 +03:00
Abdullah Alfaraj 47bf0d325d use psapi.setInitImageMask 2023-01-03 11:51:37 +03:00
Abdullah Alfaraj fd66ecbd76 fix bug deleting a layer that doesn't exist 2023-01-03 11:19:48 +03:00
Abdullah Alfaraj 53b5078997 newExportPng method that doesn't relay on the buggy Quick Export as png feature 2023-01-03 09:40:47 +03:00
Abdullah Alfaraj d190c19ad5 adding try and catch to exportpng related functions 2023-01-01 12:01:48 +03:00
Abdullah Alfaraj f8d3119b54 save output images to a project related directory 2022-12-31 12:37:20 +03:00
Abdullah Alfaraj c94d81e725 only generate a new unique id if the document doesn't have one. 2022-12-31 10:26:25 +03:00
Abdullah Alfaraj 3369944d01 read and write unique document id to metadata 2022-12-31 09:52:51 +03:00
Abdullah Alfaraj 2ee10f069e unselect the active layers while the prompts textarea are active 2022-12-28 20:37:25 +03:00
Abdullah Alfaraj 66f941470d added prompt for marquee dialog box for inpaint and img2img mode 2022-12-27 11:35:40 +03:00
Abdullah Alfaraj fc3f423b2f don't execute Init outpaint mask if no selection present 2022-12-27 09:27:35 +03:00
Abdullah Alfaraj ea76301800 [Bug fix]: add clipping mask on init image group 2022-12-25 01:49:11 +03:00
Abdullah Alfaraj 714eebb917 [Bug] fix trying to delete undefined layers 2022-12-24 11:23:46 +03:00
Abdullah Alfaraj 1b4011a82e [Feature]: added snap and fill button 2022-12-24 03:08:01 +03:00