Pages

Wednesday, April 21, 2021

Making your own album 13

click the 'Documents' header to see previous entries
https://rainbowstampsandcoins.blogspot.com/search/label/documents

4.1.3.2     Adding boxes

Open test design 5b and replace the background image with the picture flag_canada, which can be found in the same folder : images

Save the changes and generate the PDF

You will notice that the background image takes a lot of space. In the previous chapter, we saw how to reduce the size of the image, by modifiing the second parameter (number 0.25 = ¼ of the original size).
It is always better to reduce large images than to make small images larger.

So far, all images we have used, are in the folder ‘stamp_images’ that is part of the program AlbumEasy 4.2.1
This folder can be found within the folder ‘examples’.
Make a second subfolder in ‘examples’ and name it ‘stamp_images2’

Look online for a picture that can be used for this exercise : Canada. For example a stamp, a coin, …
When saving the image :

Mind the name (spelling is important), if the image name makes no sense, (like a number) rename it, and give it a logic name.

The image has an extention llike .JP(E)G or .PNG : this extention will be generated automatically when saving it to your computer. Rememer it, as it will be important when we add it to the program later on.

AlbumEasy 4.2.1, does not make a difference between CANADA.png; Canada.png or canada.png.

To avoid problems, it is better to give the file a name without blank spaces. Especially when using names like “Old Canada” or “first stamp”…
If you want to use an image with a name that consists of multiple words, better use underscores : “Old_Canada” or "first_stamp”.

The image I have used fort his execise is below:

example : old_Canada
In Module 1 D, we saw how to add a box to our album.
We used to add an empty box, but now we will add a box with an image.

It requires another command:

STAMP_ADD_IMG
in stead of STAMP_ADD

This command has 6 pm’s (and a 7th optional one).
STAMP_ADD_IMG
(A B "C" "D" "E" "F"   G )

·        A and B are the width and height like we saw earlier (no quotes required)

·        C is the location of the image we want to insert : “folder/image.extention”
C requires double straight quotes.)

·        D/E/F is for text underneath the box (left, middle or right), but can be left blank. Double straight quotes are required, even when left empty.
If you don’t want any subtext, make it look like :
"  "    " "    " "

·        G gives the option to write :NO_FRAME or FRAME (or nothin)
The option : NO_FRAME, will leave the image frameless, the other two options, will put a frame around the image.

·        Do not forget: we cannot start putting a box if we haven’t put a work line first!

Use the commands below :

ROW_START_FS (HN 8 0.1 6.0)
STAMP_ADD_IMG
(44.0 42.0 "stamp_images2/old_Canada.png"    " "    " "    " " )

Remark: the image I have used is ‘old_Canada.png) this can be different from the image you have found and saved from the internet. Make sure you use the exact name and extention of the image you have chosen.

Click Generate and PDF:


The title we used before is now not applicable anymore. It can be replaced by ‘Canada’ or be omitted.
If we add some  \n \n commands in the paragraph section, we can put the image box a bit lover. Try some possibilities, also using text parts and (no_)frame commands:
three examples of an image combined with a box
to be continued ...

previous part : https://rainbowstampsandcoins.blogspot.com/2021/04/making-your-own-album-12.html
next part : https://rainbowstampsandcoins.blogspot.com/2021/04/making-your-own-album-14.html

No comments:

Post a Comment