I've Been Framed
This site is now on another web page, you will be transported there, if not click the following link:
I've Been Framed
This page will load slowly due to the large images used as examples, please be patient.
Okay, you have a nice photo that you received or uploaded yourself.
It is nice but it is a little too big for my needs, you want the finished framed picture to be 540x380, the rough size of the wtv screen if you are planning to do "slideshows", so I went to MagickStudio
and used the resize function entering 480x320!.
Border as a Frame
In this next image you see the resized sunset with the first and easiest way to frame an image.
Simply put the attribute border="?" in your code. I used border="10" the whole code looks like: <<>img src="examplesunset.jpg" width="480" height="320" border="10" alt="sunset image"<>>
If you plan on showing your pictures to pc people always use border="0" without it they will see a border, even if you didn't intend for them to see one.
The next easiest way to spice up an image is with tables.
The code for that is:
I found a nice background at draac's
and it can be used two ways.
First I'll show a table frame example, and later how to use MagickStudio to make a framed photo as a gif, not html coding.
Background in a Table as a Frame
Here is the code for that:
Using Bars or Lines as a Frame
You need two (or four if there is a top or bottom element to the line or bar) images.
You could use a table to assemble the pieces of your frame.
The code for that is:
That was an example of html table coding, you could with measuring the size in pixels of the photo, of the bars or lines and re-sizing everything, doing 6 composites at MagickStudio come up with a gif image of the same thing, the example below.
Here is the short version of how to do that,
find the widths of the tubes (36) and the widths and heights of the sunset photo (480x320).
Anthony's width and height finder works well.
Since you will need the tubes top and bottom and left and right side double the 36 making 72, that equals the combined width of the tubes for the sides and top and bottom.
Add the width of your bars or lines plus the width of your image, for this example 72+480=552. Now add the width of your bars and lines to the height of your image, in this example72+320=392. You need a "working surface" to hold everything on as you work. It needs to be total width and height of your image plus the bars or lines
A plain white gif or jpg is what you need, if you do not have one already go to My Imager and create one under File, New, making it 552x392. My Imager has a place to transload it or just click on the url they keep the image "alive" up till midnite unlike MagickStudio's one hour time limit. Notice that the first number is always the width, the second the height.
Resize the tubes to the combined width of the bars or lines plus the image, in this example 552x36 for the top and bottom pieces. Transload or save.
Resize the side tubes just to the height of the image, in this example 320x36, transload or save .
To transload, or to get the url to save, go to Output page, select gif or jpg for the File Format (jpg cannot be selected for transparent parts) and Single File for The Storage type, hit output.
Transload the image to your directory or move the temporary MagickStudio URL's to a clipboard.
Be sure to hit done at your "clipbord" then use the recent panel to come back to MagickStudio. Then save each URL as you create the resized, composited pieces, to the clipboard (or transload them) at the time you need the piece from the clipboard make sure you are on the MagickStudio "view" page and hit the FKey you have saved the clipboard on, and ccp the url needed for the next composite or whatever.
Take your white gif or jpg, composite the sunset image using center, output and transload this or save the URL on your clipboard.
There is another way to avoid transloading, or even using a clipboard. The go to box has unlimited storage space , you could click on your image and get the url showing in the go to box by hitting show current at the output page as you do for using the clipboard, but instead of going to the clipboard paste the other urls you have saved into the go to box (create spaces between them, put in a title like side, top, image on gif, etc so you know what's what and then copy all, repeat with each new url, then paste them all in the composite url box, deleting all the other urls except the one needed then, it is easier to use the clipboard, where you can clearly label what the url is for, sometimes MagickStudio balks at "blank spaces" before or after an url.
Use your white gif or jpg again composite the top tube using Northwest as the "gravity" setting composite the bottom tube by using Southwest as the "gravity" setting.
Composite the left side using the "gravity" setting of Northwest and using +0+36 for the "location" the right side uses Northwest as the "gravity" setting and a "location" setting of +516+36. The top tube is 36 pixels high so I put in +0 to start right at the edge and +36 to position it 36 pixels down, The right tube also needed to be 36 pixels down, since I knew the total width was 552 I just subtracted 36 and got 516.
Note at MagickStudio the first number for the location called x means how many pixels from the left, the second number called y means how many pixels from the top and that point is where MagickStudio will position your image.
Back to finishing the tube frame, after compositing all four sides, you need to make the center part transparent.
Below the image are the menus to set.
Set the first to Matte
Set the second to Replace
Go back up towards the top of the page, the image is highlighted, click on it, you will see an arrow, it should be in the middle over the white part, move with the cursor arrow on your keyboard if not, click again. You should now be able to see through the image, output, YOU MUST SELECT GIF HERE if you choose jpg as the file format you lose the transparent center, transload or save the URL to clipboard. Only one more step.
Input the transloaded image URL or temporary MagickStudio URL from your clipboard of the white gif or jpg with the sunset in the center, go to composite put in the URL of the tubeframe with the transparent center, set the gravity to center, hit composite, now this image you want to keep, so transload it, If you transloaded images all along go to your web page provider and delete all the now unneeded "working pieces".
alternate line and bars method: if the bars or lines are solid without any parts transparent, you could just enlarge the photo to the size of the photo plus the widths of the bars or lines and composite the top, bottom and sides of the bars or lines right over the photo, saving a few steps.
Using MagickStudio to Make Frames
MagickStudio has one section called decorate, the next image shows a black border (set at 5x5) around the sunset, with a white border (set at 10x10) around it, then a sienna frame (set at 15x15 3x3) around that, this is one of the easier parts of MagickStudio to use experiment, have fun. Note the final frame settings, there were two sets of numbers the first as always determines the thickness of your border or frame the second set determines the "bevel" the 3D effect on the corners. Experiment with raised and sunken effects, like raising the photo then putting a border and frame around it.
Using Backgrounds to Make Frames
Not too long ago, the only way to use a background was to resize it ?? pixels bigger than your image and composite the image over it, centered. It does not look very good, does it?
I just saw an added function on the composite page at MagickStudio. The ability to tile an image across and down your "image canvas" as they call it.
So get your white gif or jpg and input it at MagickStudio, shown at half size.
Go to composte and enter the URL of the background you like.
Under the composite button is the checkbox to tile the image, check it:)
You get the white image totally covered with the background, I like the geometric patterns or ones that look like quilter's squares.
At this point you could just composite the sunset photo to the center, without making round corners or ovals or diamonds, which need the more complex method with the transparent center.
Next I went to Draw, selected RoundRectangle from the drawing "primitives" I put in the starting top left corner point and the ending bottom right point of my rectangle and "how round I wanted the corners parameters.
The combined background with sunset centered image is 540x380 but the sunset picture is centered 30 pixels in on all sides. Well, knowing that I wanted the frame to overlap the image a little, so I started the round rectangle 80 pixels from the left and 80 pixels from the top, and subtracted 80 from 540 and 380 to get the correct "balanced" ending points. By trial and error I found 20x20 made a nice rounded corner, try your own settings.
the parameter setting was +80+80 +460+300 +20+20
Next I did the transparent paint option described above, and got this as my result, seems MagickStudio leaves a few bits of white at the corners. Remember you must transload images with transparent parts as a GIF. Transload or save the URL to clipboard.
Okay, the first part is done we have the top frame piece done, lets work on the bottom photo piece. It helps if the photo and frame are the same size, now to account for the frame edges you need to composite the sunset image that has already been re-sized on top of the white gif or jpg, that is sized the same as the top frame piece.
it looks like this
Now go to composite and put in the url of the top frame piece, composite at center and you get the finished framed picture. Sigh, I know those corners look ragged but thats how magickstudio was working that day, tried several times too.
This is only one example you can rotate the image so it is longer than it is wide, draw different shapes other than a round rectangle, you could choose ellipse to make an oval,
The ellipse settings were:
the center point, half how wide and high you want it, and that you wanted a full elipse not an arc, translates to: 270,190 200,150 0,360
use polygon to make a diamond shape,
To make a polygon you need to list each place the points where the lines start and go to the next point, then you need to repeat your first parameters so all the lines connect. So you don't go too crazy use the bottom piece with the image centered over the white background, and draw your shapes, you can see if there are any gaps between the frame and photo.
Once you have the drawing parameters right write them down, then take your tiled background and draw, transparent the center knowing when you composite, it will fit.
see how the corners all fit, staying inside the photo? The settings used were:
270,31 489,190 270,349 51,190 270,31
trust me it gets easier......as you use each feature at magickstudio more....
Instead of giving every single step I just showed the examples and what settings I used, to give you an idea of what I meant. This is for those who already know their way around the MagickStudio. I tried to be very thorough, and not skip any steps, you might find a totally different way to achieve the same results.
Thanks to Cristy for creating imagemagick, making it freeware, and the folks at Net4tv for hosting it.
Check out my pages MagickStudio help pages and some of my MagickStudio creations.
Here is a page listing all the imagemagick help pages, written _by_ imagemagic.
https://members.tripod.com/~yahood/actualimhelppages.html Soon I will expand each page with examples showing different parameter settings.