Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

On the digital collections homepage, we showcase a series of “featured topics” (also known as “homepage categories”.) As of 2021, we have nine of them: “Women in Science”, “Instruments and Innovation”, and so on.

When we create a new one, a curator typically provides the developer with a thumbnail cropped from an original TIFF chosen from the digital collections.

Instructions for the curator

To create the thumbnail:

  • Download a high-resolution original TIFF from the digital collections.

  • Crop the TIFF so that the resulting file is a square at least 700x700 pixels on each side. (Bigger is fine)

    • Assume the bottom sixth of the image will be hidden by the label displayed in front of the thumbnail.

  • Place the cropped TIFF in:
    P:\Othmer Library\Digital Collections - External Access\Crops for Hydra Redesign\cropped_tiffs\categories

Instructions for the developer

Use the following imagemagick command to convert the thumbnail to a jpg:
convert original_file.tif -density 600x600 -resize 700x new_thumbnail_2x.jpg

The resulting thumbnail checked into the codebase should be:

  • a jpg

  • 600x600 density (we aren’t totally sure why this matters, but think it’s what we’ve been doing)

  • progressive

  • 700 pixels wide

  • 700 pixels tall

  • with a name ending in _2x.jpg, consistent with the other files in the featured topics asset directory.

See also

For more technical information on featured topics, see: app/controllers/featured_topic_controller.rb and app/views/homepage/_featured_topics.html.erb .

For examples of past Github issues relating to these, see e.g. water, portraits and people, women in science, and so on.

  • No labels