Saulgoode's Calendar Script
GIMP Plugin Registry
Please Note: The calendar script has been updated to give 4 different layouts. If you downloaded the calendar before 11/28/09 you have an older version. Delete any previous versions you have in your Scripts folder. The new version is sg-calendar_1.scm.
Get the Add_Border_Script_by_Insanity_Prevails.scm
The Apple Garamond font made the week days the easiest size to read for me.
Apple Garamond font
I used AppleGaramond.ttf - that's the plain vanilla version in the zipped file.
Here is the calendar you will be making.
Information About the Measurements -This is not required reading to use the tutorial.
For making everything fit, here is the math that is used for the measurements.
Small calendar image: 150x130. It is changed to 150x150 when the month name is added.
Large calendar: To make the large calendar, 10 pixels are added to the width and height of the small calendar measurement to make 160x160. Multiply 160 x 4 for the large calendar width and 160 x 3 for the height = 640 x 480.
Grid is 160x160. That is for adding 10 pixels to the small calendar width and height. The small calendar is moved to the top left of the grid box, leaving 10 pixels of space on the right and 10 pixels on the bottom.
After all of the small calendars are in place in the large calendar, Image > Canvas: 10 pixels are added to the width of the large calendar canvas and 30 pixels are added to the height. In the Canvas dialog the calendar is moved to the right to make 10 more pixels on the left side and down to add the 30 pixels to the top.
A 3pt frame is added to the calendar, and the canvas size is increased by a total of 6 pixels to both width and height. Finished calendar is 656 x 516px.
Make a Year Calendar
Make a new image 150x130 and fill the background layer with white. Save it as an xcf file and name it smallcalendar.xcf.
Make another new image 640x480. Fill the background layer with white.
- [*:29se5q4q] Image > Configure Grid
[*:29se5q4q] Line Style: Solid
[*:29se5q4q] Foreground Color: 00ff00 (It's neon green, you can choose any color you prefer)
[*:29se5q4q] Spacing: Width & Height = 160
[*:29se5q4q] View > Show Grid
[*:29se5q4q] View > Snap to grid
Save it as yearcalendar.xcf.
Make the Foreground color the color you want for the text in your calendar. I used 0462ba.
Select the smallcalendar file, then Filters > Render > Calendar.
- [*:29se5q4q] January
[*:29se5q4q] Year = 2010
[*:29se5q4q] Layout - See the choices for Layout below in the list and images.
[*:29se5q4q] Font = Apple Garamond
[*:29se5q4q] Border Width = 0
[*:29se5q4q] Date Position = Bottom Right
Choose the Layout you want for the small calendar.
- [*:29se5q4q] Allow 6 weeks (resizing text for optimal fit)
[*:29se5q4q] Force 6 weeks (use six rows of weeks in all cases, even for a 4-week February)
[*:29se5q4q] Wrap week 6 to week 1 (the approach proposed by wbool)
[*:29se5q4q] Wrap week 6 to week 5 (and if needed compressing two days into a single cell)
Here are plain examples of each type of layout. I put borders in just as examples.
Click OK. You have a small January 2010 calendar. Filters > Reshow "Calendar" and change the month to February. Repeat until you have all of the months in layers in smallcalendar.xcf. File > Save or Ctrl + S.
To make room for the name of the month, Image > Canvas. Break the chain and make the Height 150, press Enter, drag the image down to the bottom of the dialog box, click Resize. You may want to right-click the white Background layer, Layer to Image size and refill it with white to make seeing what you are doing easier.
Select the January, 2010 layer (the plain January layer is empty - it was for the borders).
Text Tool > Apple Garamond font > Size = 18. Type the month name.
Click the Alignment Tool then click in the text.
Click the middle icon in the Alignment tool dialog which aligns the text horizontally, then click the bottom left icon which moves the text to the top of the image.
Merge the January text layer down to the January, 2010 layer.
Do it for each month.
Drag the Layer Preview of January, 2010 into the year calendar image, use the Move tool to position it in the top left grid box and move it to the upper left corner of the grid. There will be 10 pixels of space left on the right and bottom in the grid box. Do the same for each completed month layer until you have the 12 months arranged in the large calendar layout.
After you have each month aligned in the year calendar, Image > Canvas. Unlink, make the Height 510, and the Width 650, press Enter and drag the calendar to the bottom and to the right in the dialog, click Resize. Right-click the background layer, Layer to Image size and fill with white.
Select the top layer in the calendar, select the Text Tool, Apple Garamond font, make the Font Size 30, type the year numbers. Align top and center with the alignment tool as you did in the small calendars.
If you want to fill the background with a pattern, gradient or image, select the Background layer, add a new, transparent layer and fill with what you want. You may need to lower the opacity for the numbers to show well.
It's up to you whether you want to keep the extra white Background layer. If you have lowered the opacity on a new layer filled with a pattern, etc., you may want it to back your color layer.
Select the Background layer and Filters > Decor > Apply Border. Border size 3. Make the border color the same color as your text by dragging the blue box of the Foreground color into the Border Color Dialog on the top color row in there. Be sure to check the box, Increase Canvas Size.
Look over your calendar to make sure everything looks OK. You may want to save it in layers as an xcf file to change later.
Right-click a layer and select Merge Visible Layers. Save as your finished year calendar.