back to
UkMovingToMir,
UkMaintenance,
UkMirFeatureTutorial or
ImcUk
How to Upload Images
Introduction
People doing features have been resizing images with code (by setting the "width" and "height" of it using HTML) rather than letting Mir do the work for them. This makes image appear smaller but the full big image is downloaded each time. This leads to really large filesizes that annoy the modem proletariat. One of the cool things about Mir is that if you feed it a big image for a feature, it will automatically generate a small version for the front page.
Step-by-Step
Attachments
When
editing your feature, scroll down to the bottom of the page, and note that there is some text at the bottom saying:
Attachments
Images: [+] add image | upload image
Add image is for when the picture you want to add is on the uk site already.
Upload image is when you have a picture in your hard drive. If you find a picture on another site, it is best to download it into your hard drive noting the source, and then upload it.
Always make sure that the picture is a file with .jpg, .jpeg, .png, or .gif format. Most picture-making programs allow to 'save picture as'... one of those formats. Note: as of writing, there is a problem with .png making the small thumbnails or icons.
Add Image
The 'add image' button will take you to a page with the latest pictures that people have uploaded to the site via publish button. You then only need to click the one you want.
Upload Image
Click on "upload image". This will bring you to a form where you can upload an image from your hard drive for use on the front page. You don't have to fill in any of the fields, just make sure that "published" is selected, and then press the "browse" button, select the proper file on your hard drive, and press "insert" to insert it. Then save your feature, hit the "generate all new" button to rebuild the front page, and you will have an image inserted into your feature, with a small thumbnail image automagically generated and placed on the left side of the article.
If you need to place the image else where the thumbnails can be found
in /icon/ directory.
eg
http://indymedia.org.uk/icon/2003/06/273425.jpg
is the thumbnail for:
http://www.indymedia.org.uk/images/2003/06/273425.jpg
But links to webpages and img source to files on indymedia from features should not contain website domain but a leading / , eg just
/icon/2003/06/273425.jpg
the leading / rather than a relational link means link will work when feature is on front, in a regional page or topic. Not using the url will mean link will work with same site the viewer is using, as MIR may have multiple mirrors and one may be down.
eg
http://uk.indymedia.org ,
http://www.indymedia.org.uk or
http://mirror2.indymedia.org.uk
files, images will appear under url
https://publish.indymedia.org.uk first but do not link or source here. This is database / admin server and should not receive viewer load, and also uses SSL which does not add to experiance of viewers and may hinder viewing on some.
started page with main Image HOWTO
--
YosSarian - 27 Jun 2003 added bit about file location and links.
--
SpaceBunny - 30 Jun 2003
--
AnaPena - 03 Nov 2003 added the 4 paragraphs after the 'add image ... upload image'
--
WikiKes - 29 Nov 2003 added index, and note about png's
to top