AvidGameFan / ed-plugins

Plugins for use with Easy Diffusion, featuring Scale Up
2 stars 2 forks source link

scaleup tile overlap #3

Open dogeatdogeatdog opened 2 months ago

dogeatdogeatdog commented 2 months ago

i don't know if it's intended like this, but when i tried to scaleup with the tile method, the image is not split into 4 equal parts, there is some overlap in what is generated in each tile, and I'm not sure how to stitch them together. If I try to join the images, I end up with something like this

score_9__score_8_up__score_7_up__score_6_up__newes_8NY41DK0-tile

AvidGameFan commented 2 months ago

The overlap is there for a couple of reasons.

  1. each tiled image will vary slightly, so you are more likely to see the seams where the edges join, if there's no overlap
  2. a lot of panorama utilities use overlapping to ensure things line up properly

In a photo editor, you should be able to make each image a layer, and line them up over each other and blend the seam. Or just use a panorama program to stitch them together automatically.

If you want zero overlap, the plugin can be edited to set it for that. Just find this line and set it to zero:

const splitOverlap = 64; //This can be modified by increments/decrements of 64, as desired