NOTE: Going forward, all images should be uploaded to the bssw.io/images directory. The README.md files in bssw.io/images contains further instructions.
NOTE: This separate images repo will no longer be used and will be deleted once all the images have been transferred and all content files updated.
This is the repository for BSSw image files. Below are instructions for getting your images into the site.
Note that you can place an image from any location on the web, but drawing images from the images repo and assigning the proper class for an image ensures it will display consistently with other images in the site.
Upload only .jpgs, .pngs, .gifs, or .pdfs. If you are working with another file format, be sure to convert to one of these. Image resizing tools can be used, such as Photoshop, Apple Preview, Gimp, Darktable, etc.
Before adding an image, please pay careful attention to the file size and the pixel size.
A file size above 10MB should be considered too large for upload to image repository. If you have an image this large to upload, please resize to a size below 5MB. Problems may be introduced with such large images in the repository.
Pixel size is different than the file size and is indicated by pixel width x pixel height. To determine the pixel size of your image:
- Find the location where the image is saved
- Place your cursor over the image icon, and right-click if you are using a PC or Ctrl-click if you are using a Mac.
- Choose Properties (or Get Info on Mac).
- On PC click the Details tab
An image with a pixel size less than 1000 px on its largest dimension is considered resolution deficient; please attempt to find a higher resolution (excludes logos)
Classes control how your image will appear on a page. The following classes should address each need. To see how they are placed into code, see "How to place an image on the page" below. Special cases for Blog post images and PDFs are included at the bottom of this document.
class='page'
(example to come)
class='logo'
(example to come)
class='page lightbox'
(example to come)
- Go to https://github.com/betterscientificsoftware/images (hint: you are here).
- Select Upload Files button above and to right of file listing.
- On new screen, drag image to the area identified and they will be uploaded.
The inclusion of images in the text area is intended to better explain the concept expressed in the resource -- diagrams, data viz -- nothing frivolous.
A hero image is allowed but not reqiured for blog posts. The hero of the top blog item will be displayed on blog landing page. Hero images should contain no bold text; incidental text (in diagrams, for instance) is OK.
Inclusion of logos and speaker images in the text area is OK, but the point of these pages is to give some detail and then pass users on to the official event page.
Articles are presented as resources, so resource rules apply.
At any point you can enter the following tag to call up an image:
<img src='https://github.com/betterscientificsoftware/images/raw/master/filename.jpg' class='page lightbox' />
To add caption text, place the image text in front of the image tag.
[Image text]<img src='https://github.com/betterscientificsoftware/images/raw/master/filename.jpg' class='page lightbox' />
- You need to replace filename.jpg with the appropriate file that's been uploaded to the repository (name.format).
- The class='page lightbox' accommodates a wide set of image shapes and allows user to enlarge the image to full screen. Always use 'page lightbox' for vertical images.
- If your horizontal image is under 1000 px wide, you can subsititute class='page' to prevent enlargement.
- If you are entering a logo or headshot, you can substitute class='logo' to scale appropriately.
- If you are using either class='page' or class='logo' be sure to add a
<br>
tag after the preceeding text and before the image to ensure adequate separation between the two
- This is the introductory sentence or paragraph that appears in the grey hero area below the page title. The system uses the first paragraph of your body copy to populate this deck. Unless you are assigning a hero image specifically to a blog post or an article, you will want to be sure to enter a deck. This brings consistency to pages, provides readers with a brief overview of what's to come, and importantly, including a deck ensures that page images are placed below the prerequisites. Not doing so "breaks" the page.
These are a special case. Enter the code below substituting your filename at the end of the tag.
**Hero Image:**
- <img src='https://github.com/betterscientificsoftware/images/raw/master/filename.png' />[The debut of Better Scientific Software.]
These are addressed as a text link and follow the formatting below.
[WhatIs doc](https://github.com/betterscientificsoftware/images/raw/master/filename.pdf "What is Good Documentation?")