Skip to main content
dendenis82
Inspiring
October 1, 2023
Answered

Shape size fixed to 8px steps.

  • October 1, 2023
  • 1 reply
  • 610 views

Hello!
Is there a way to set the transformation of a shape in vector mask to multiples of eight pixels?
I didn’t find any built-in capabilities, but maybe this can be done with a script?
Or maybe this can be aplied to the selection, which can be converted to the path...
Any suggestions are welcome.

 

This topic has been closed for replies.
Correct answer c.pfaffenbichler

I don’t quite understand what your problem is. 

What do you actually want to get? A rectangular Selection with sidelengths that are multiples of 8, an irregular Selection in a translated into an 8px by 8px-grid, …? 

 

Please post meaningful screenshots or mock-ups to clarify. 

1 reply

davescm
Community Expert
Community Expert
October 1, 2023

One way is to select the vector mask , go to the properties panel and click on shape (not mask)  at the top. Then in transform enter the W and H values using math so enter 8*24 to get 192 pixels, 8*25 to get 200 pixels etc. That way you know you are getting that multiple of 8

 

Dave

dendenis82
Inspiring
October 3, 2023

Thank you, 
The point of this is export to Stable Diffusion(SD) size multiple of  8; SD saves only 8*X sizes even if input image isn't - in this case input and output resolutions differs;
I need to get back generated SD image with exact same dimensions.
Your suggestion, seems like, can't provide this function easer than look in SD ouput dimensions and maually set them to shape and  export it again to SD, but this time allready with size multiple of 8.

c.pfaffenbichler
Community Expert
c.pfaffenbichlerCommunity ExpertCorrect answer
Community Expert
October 3, 2023

I don’t quite understand what your problem is. 

What do you actually want to get? A rectangular Selection with sidelengths that are multiples of 8, an irregular Selection in a translated into an 8px by 8px-grid, …? 

 

Please post meaningful screenshots or mock-ups to clarify.