Sign in to follow this  
Followers 0
MXI

MXI's Shapes (photo grids, measurements) UPD:2016.06.02

2 posts in this topic

What's new
 
2016.06.02 - added superellipses
 
 
Photo grids
 
I had some photo-editing to do recently and I thought it will be handy to have cropping masks to help me with it. I found that I can implement them as custom shapes, so I decided to make a set.
 
After little research in places like this and that I came up with this set of shapes:
 
post-146563-0-85967400-1459597826_thumb.
 
3x3 grid and Phi 3x3 (Golden Ratio) grid are ultimately all that I was looking for by the moment, but it's hard to stop when you started, so I've implemented everything that looks half-reasonable at least (trying not to overload shapes with details).
 
How to use:
  1. make a new layer over your photograph;
  2. create a grid shape there and move it to find a proper composition;
  3. the simplest way to convert a shape to selection I know is to deselect it, do a Magic Wand outside and invert selection;
  4. crop image to selection;
  5. delete this utility layer;
  6. you're done.
 
Some shapes are sensitive to proportion. Don't forget to hold a Shift button when using them.
 
If you need differenty oriented spiral, for example, you can drag one side over other side while holding Shift to keep proportions.
 
I by no means an experienced photographer, so if you have a better idea on what should be in the set - I would like to hear your ideas and motivation.
 
 
Measurements, dimensions, other grids
 
As I said, it was hard to stop, so I started to think what other kinds of usefull shapes can be implemented. And here they are, various measurement assisting tools:
 
post-146563-0-94236400-1459597836_thumb.
 
And some more miscellaneous grids:
 
post-146563-0-44901700-1459597845_thumb.
 
Some of them may have no practical use (Smith chart in raster graphical editor, anyone?), some of them may have non-optimal parameters. This is just an experiment. Let me know if you have some use for them or something like them.
 
 
Superellipses
 
Superellipses lie in between of regular ellipses and rectangles. In some designs superellipse can be more appealing option than rounded rectangle.
There are few variants in the pack, with different level of "roundness":
  • 2.5 is a power factor of choice of Piet Hein, popularizator of superellipses;
  • superellipse with factor 4 is called squircle;
  • factor 5 is used in iOS icon designs;
  • factor 3 is here just to fill the gap between other values.
 
post-146563-0-95931100-1464896965_thumb.
 
 
Download
 
 
mxi_paint.net_shapes.zip (outdated and superseded)
 
Or visit my page and grab it there.
 
 
Ideas for future (shapes)
  • Parametric shape generator.
  • Your suggestions.
 
 
Converter
(I'd rather prefer to move this to a different topic in Shapes subforum. Not sure how to deal with forum rules.)
 
While making the shapes, I found it's tedious and error-prone to do conversion from Xaml pages to Paint.NET shapes manually. So I've spent some time to write a converter.
 
It's a PowerShell script which does the simple thing - takes source Xaml files from one place and puts shape files to other place. (Source files are the files created in Kaxaml according to this instruction.)

 

Script can be obtained on GitHub. The simplest way of using it is to call it from bat file. Check for a sample bat file in the same place on GitHub and customize it for your needs.

 

PowerShell is included in Windows since Windows 7, and there should be no issues in using it on modern versions of Windows. But I will not teach you how to use it in ways other than with a bat file.

 

Quirks
 
Folder "C:\Users\<username>\AppData\Local\VirtualStore\Program Files\paint.net\Shapes" is not working for Paint.NET. It's quite annoying to confirm file operations in Program Files every time. Paint.NET developers should move user manageable content to user profile.
 
Shapes should be fillable. If your shape consists only of PathFigures, you need at least one figure which is closed and filled. (Update: fixed in paint.net 4.0.10)
 
Shapes will be shown in dropdown menu and will have moving grips located according to fillable area. I had to do a hair-thin trick on measurement_mark shapes to make them work properly. (Update: fixed in paint.net 4.0.10)
 
Default FillRule is EvenOdd. Placing one fillable geometry inside other swithes filling state. You may need to set FillRule="NonZero" if you want to keep all the shape filled.
 
To be able to quickly iterate creation process and fix all of this is a good reason for the script to exist. It allows you to test your shapes, fix source files and have proper shapes immediately, instead of having manually corrected shapes which doesn't match their sources.
 
Ideas for future (converter)
  • Warnings for improper shapes? (Unfillable paths, what else?)
  • Back-conversion. Not required if you follow a good practice of editing only source files.
  • Your suggestions.
Edited by MXI
4

Share this post


Link to post
Share on other sites

I like the "Degree Wheel", It takes me back to the good old days when I would Degree in the Lobe Centers of my Racing Cams.....

 

tRL0ZA8.png

Edited by dipstick
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0