Images
This page describes for web editors in the School of Pharmacy how to upload images in a website built by the Office of Communications.
On this page
Before uploading
Don’t use an image unless an image is required
-
Is your image relevant and meaningful to the adjacent text? If not, don’t use it.
-
Does your image communicate something that could not be communicated in any other simpler way? If not, don’t use it.
-
Does your image consist of primarily or only text? If yes, don’t use it—use text instead.
More info: The Department of Useless Images.
Choose only images that meet our photography standards
Thoughtfully crafted guidance on photography is available from our photography guide and from UCSF University Relations at Photography Standards. You can also request photography guidance from the Office of Communications via Website and Communications Support.
Choose only images that you created or that you have written license or permission to use
You are required by University policy and federal law to respect the copyright of others.
Some image libraries available to you include:
-
UCSF Brand Photography Library: log in with your MyAccess credentials
-
The Archive at the UCSF School of Pharmacy: for access, let us know at Website and Communications Support
Obtain written permission from all persons depicted in the image
You are required by University policy to obtain written consent for all identifiable persons in images you use to communicate.
Details: See the Consent Forms item in the Policy section of Brand Photography Library.
For PharmD students, the Office of Student Affairs gathers these permissions en masse during Orientation, and this office keeps track of which students have not consented to the use of their image or voice.
Choose the largest image size available to you
For best results, use the largest image size available—up to 4,000 pixels wide. Headshots are ideally at least 1,000 × 1,000 pixels.
Required: create alternative text for screen reader users
You are required by University policy and state and federal law to make images accessible to persons with disabilities.
In most cases you meet this requirement by including a brief description of the image at the time of upload. We call this brief description alternative text, or alt text for short. Some tips:
Do |
|
---|---|
Do not |
|
Having trouble writing your alt text? Contact us at Website and Communications Support.
When you have an animated GIF
Animated GIFs that animate longer than five seconds or that blink or flash must use the following markup which enables visitors sensitive to animation to pause it. In addition to your animated GIF, you must also provide a static GIF sized identically.
- Keep your filesizes and frame counts as small as possible. People typically spend less than eight seconds on any web page.
- Enter source code mode by selecting the Source button.
- Paste the following markup in the source code where you want your animated GIF:
<div class="set-of-static-and-animated-images">
<div class="static-image">static image goes here</div><details open=""><summary aria-label="static image" role="button"></summary>
<div class="animated-image">animated image goes here</div>
</details>
</div> - Exit source code mode by selecting the Source button.
- Add your static and animated GIFs in the specified locations, choosing Original in Local Options > Display As. (The animated GIF will not animate unless Original is selected.)
- Delete the placeholder text.
- Save the draft. If the animated GIF does not display as expected with a pause button in the top right corner, let us know at Website and Communications Support and we’ll help you resolve it. If it displays as expected, publish your page when ready.
- If you later need to edit, replace, or delete your animated GIF images, you can do so in the normal ways described elsewhere on this page.
Upload an image
Step 1: Specify the file to upload
-
Edit the page to which you want to add an image.
-
Place your cursor on a new line where you want the image.
-
Use the Paragraph Format menu to set the paragraph format to Normal.
-
Select the Add Media button. A dialog appears asking you to upload a new file.
-
Find and select the image on your device. The filename then appears in the upload field.
-
Select the Next button. The image is uploaded, and a new form appears requesting some details about the image.
Step 2: Specify the crop and other data about the image
-
Leave the Name field unchanged.
-
In the Manual Crop field, if the image can benefit from being cropped:
-
Select Custom Crop for a non-square crop.
-
Select Square Crop for a square crop.
-
In either case, follow the on-screen instructions to crop the image.
-
-
In the Alt text field, specify a brief description that helps screen reader users understand the meaning of the image in this context. See Required: create alternative text for screen reader users.
-
Optional or required as described below: add one or more image credits:
A Credit field enables you to specify who created the image or who owns the license to the image.
-
Image credits are required only for professional photographers or owners of licensed images who require that we credit their work.
-
If needed, you can specify more than one image credit, e.g., for a diptych or triptych.
-
You can optionally specify a URL for each image credit.
-
Image credits should be as concise as possible. If you have a lot of image credits or if an image credit is complicated, place it at the end of the page or section rather than in the Credit field.
-
Example 1: Someone provides their own headshot. Leave the image credit blank unless a professional photographer took the photo and requires a credit notice.
-
Example 2: A faculty or staff member took the photo in the course of their work. The image is technically owned by UC Regents, but it’s fine to specify the photographer’s name and link to their profile on pharmacy.ucsf.edu to acknowledge their work.
-
Example 3: A student took the photo and is letting us use it. The image is owned by the student, and if they want credit it’s fine to specify the photographer’s name to acknowledge their work.
Add one or more image credits:
-
Begin typing the person’s or entity’s name in the Credit field. If the person or entity was previously credited for a different image, an autocomplete list appears.
-
If an autocomplete list appears, select the correct credit from the list.
-
If an autocomplete list does not appear, complete the person’s or entity’s name as it should appear. Do not include “Courtesy of” or “Provided by” or similar.
-
If you need to add a URL for this image credit, we’ll handle that in Step 4: Review.
-
If you are specifying more than one image credit, type a comma and space, then return to (a) above.
-
-
Optional: add an image caption:
An Image caption section enables you to include a caption for the image that will appear below the image.
-
For accessibility reasons, captions must describe the image or be directly relevant to the image.
-
For images including people, specify each person’s first and last names and their degrees. Include School of Pharmacy graduation year only if directly relevant.
-
If the image includes more than one person…
-
…and is linear, begin with “Left to right:”
-
…and is non-linear, begin with ”Clockwise from top:”
-
…and is linear with multiple rows, begin with “Top to bottom, left to right:”
-
-
-
Select the Save button.
-
A thumbnail of the image appears with an Edit file / crop link and some local options.
Step 3: Select size and wrapping options
-
In the Local Options section:
-
Choose a relative size for the image in the Display as picklist.
-
If you specified a square crop earlier, choose a size that is preceded by “Square.”
-
If you uploaded an animated GIF, select Original.
-
-
Choose whether text will wrap around the image in the Wrapping picklist.
-
Left image means the image appears on the left and text wraps around it to the right.
-
Right image means the image appears on the right and text wraps around it to the left.
-
None means the image will appear on its own line with no text wrapping.
-
-
-
Select the Submit button. A thumbnail representing the image should now appear in the location you specified. The image does not appear in its intended size and wrapping until you save the page as draft.
Step 4: Review
-
Save the page as draft by selecting the Save button at the bottom of the page. The page reloads without the editing interface.
-
Review your image insertion. View the draft page at different browser widths to confirm that the image appears as expected for mobile devices as well as laptop and desktop computers.
-
Optional: If you added one or more new image credits in Step 2 and you need to add one or more URLs for them, this is covered in Change the properties of an existing image.
-
Contact us at Website and Communications Support if these steps did not give you your desired result.
Change the properties of an existing image
-
Edit the page containing the image.
-
Select the image you want to edit. Handles appear on the edges of image to indicate it is selected.
-
Select the Add Media button. A Media Browser dialog appears, displaying an Edit file / crop link and some local options.
-
Select the Edit file / crop link. A new tab opens in your browser enabling you to change the crop and other data about the image.
-
To add, change, or remove a url for an image credit:
-
In the Credit section, select the Referenced item link. One or more links appear matching what’s specified in the Credit field.
-
Select a referenced item link for which you need to add, change, or remove a URL. A new tab or window appears with the Image credit name and Image credit link fields.
-
Add, change, or remove the Image credit link field.
-
Select Save. A confirmation message should appear: Updated term.
-
Close the tab or window. The Edit image page appears.
-
-
Select the Save button when done making changes. The page reloads showing the image title and the image without the editing interface.
-
Close the current browser tab and return to the previous tab displaying the Media Browser dialog.
-
Make any changes you want to the local options, then select the Submit button. The Media Browser dialog closes, revealing the page being edited.
-
Select the Save button at the bottom of the page. The page reloads without the editing interface.
-
Review your changes, and contact us at Website and Communications Support if these steps did not give you your desired result.
Replace an image
-
Manually record the properties of the image you want to replace.
-
Delete the image.
-
Upload your new image.
-
Set the properties of the image.
When you have many images
When you have a large set of images grouped together—usually three or more—wrap the set of images in a div
with class laundry-line
and set them to wrap either all left or all right. This ensures that the images are sized and wrapped properly for mobile devices. For help with this, contact us at Website and Communications Support. Examples:
-
the headshots on Study shows sugar industry buried evidence of health risks
-
the sets of three and six images on Pharmacy Alumni Weekend Report
If you have a site on pharm.ucsf.edu, you can also include sets of images using a Gallery or Slideshow.
Allowed file types
Filename extension |
Description |
---|---|
gif |
|
jpeg, jpg |
|
svg |
|
webp |
Do not use PNG files
We no longer permit png files because jpg is much more efficient in filesize. Convert any png files to jpg before uploading, for example, using Squoosh (where in the Compress settings you would choose Browser JPEG).
Examples
Many examples of using images appear throughout our websites. Simply browse or let us know what example you seek at Website and Communications Support.