Digital Team
About UsEdit in Gitbook
  • Welcome
  • Getting started
    • Life on the Digital team
      • Meetings
      • Communication
      • Software engineering working agreement
    • Contributing to Boston.gov
    • Using GitBook
  • Standards & best practices
    • Digital Team Release Notes
    • Working with Partners
    • Accessibility at COB
      • Developers
      • Content Editors
        • How to guide
      • Resources
      • Working with Iterators
    • Analytics and Metrics
    • Code of Conduct
    • General
    • Code reviews
    • Project Management
    • Git / GitHub
      • Contacts at Github
      • Git Command Tips
      • GitHub Service Accounts
    • Code quality
      • Automated tests & static analysis
      • Code comments
      • Style guides
        • Drupal/PHP
          • D8 Dependency Injection (DI)
        • React/TypeScript
    • Technical documentation
    • Hosting and monitoring
    • Deployment
  • Guides
    • Technology stack and technologies used
      • Web applications
    • Drupal - boston.gov
      • Custom Development & Configuration
        • On Demand Instances
          • Acquia Environment setup checklist
        • Continuous Deployment Process
        • Developer Onboarding
          • Step 1: Local Dev Environments
          • Step 2: Version control
          • Step 3: Introduction to Drupal
          • (to be sorted)
            • Development environment
              • PHP CodeSniffer
              • VSCode IDE Setup
              • AWS for Developers
              • Using Windows
            • Installation instructions
              • Typical build output
              • Lando 101
              • Verify Installation
                • Local Patterns installation
              • Windows install
              • PhpStorm settings configurations
          • Step 4: Site Building in Drupal 8
        • Site Development Notes
          • Git Best Practices - Drupal
          • Drupal Cache
          • Drupal Config
          • Custom Modules
            • Custom Themes
              • Front-end Theme (bos_theme)
                • Site Breadcrumbs
              • Back-end Theme (bos_admin)
            • Adding Templates to Custom Modules
            • Custom Content Types
              • D7 -> D8 Conversion
              • Content Editor UX
                • Content Moderation
              • In-page Navigation Menu
            • Custom Paragraphs
              • D7 -> D8 Conversion
            • Custom Taxonomies
            • WebApps
          • Drupal UX-specific
            • Image Styles & UX
            • Example Content Pages
          • PHPStorm IDE
        • CKEditor
      • Drupal Apps/Content Types
        • Budget Website
        • Building Housing
          • BH Drupal Entities
          • BH Map Webpage
          • BH Property Webpage
            • BH Project Timeline
          • BH Salesforce Sync
            • Salesforce Contributed Module
        • Contact Form
        • Election results
        • Google reCAPTCHA
        • My Neighborhood Lookup
        • Metrolist
        • Metrolist (Drupal)
        • Project Tracker
          • Content Types (& Paragraphs)
          • Taxonomies
          • Views
          • Developer Notes
      • Drupal Features & Components
        • Single Sign On (SSO)
          • Drupal SAML Knowledgebase
          • SamlAuth
        • Maps on boston.gov
        • Charts on boston.gov
          • Quick Overview
          • Chart Data
          • Chart Configuration
          • Advanced Concepts and Techniques
          • Charts on boston.gov (legacy)
          • Useful Resources
      • Drupal micro-services (API end-points)
        • Integrating with Boston.gov
        • Assessing Forms Endpoint
        • Bos311 API
        • Cityscore
          • Knowledge Base
        • PDF Manager Module
        • PostMark Email Services
          • Postmark Knowledgebase
        • Upaknee Email List Services
        • Public Notices
        • Site Alerts
          • CodeRed Subscription
      • Drupal - Weekly Maintenance
      • Drupal - Periodic Maintenance
    • Digital Webapps
      • Libraries and Tools
        • Emotion
        • Storybook
        • Rollbar
      • Services
        • AWS-hosted Microservices
          • SQL Proxy API (DBConnector)
            • Developer Notes
          • PDFToolkit API (DB Connector)
            • Developer Notes
      • Webapps - Maintenance
      • Webapps
        • Boston Family Days
        • Property Tax Calculator
        • Access-Boston
          • Updating IAMDIR/Group Management/LDAP certificates
          • Node Server
          • Portal App Tile Configurations
          • Ownership of Concerns
          • Updating SAML Certificates
          • Applications/Services
            • Group Management
            • Confirm ID/ID Verification
            • Preferred Name
        • Sanitation Scheduling
        • Registry-Certs
          • Marriage Intention
      • DevOps
        • New service setup
          • Non-Monorepo Service Setup
        • Service Configuration
          • Editing a project’s configuration using Cyberduck
        • Managing AWS
          • Production Overview
          • AWS Bastion Access
          • Terraform
            • Updating the ECS cluster AMI
          • Restarting an ECS service
          • Encrypting service configuration for S3
          • Mounting AWS SFTP as a Drive (Mac)
        • Webapp Deployment
          • Deploy to AWS 2021
            • Deploy Tool (cob_ecrDeploy)
    • Fleet - Pattern Library
      • Patterns Library Architecture
      • Icon Library Architecture
      • Developers
        • Local Development for Drupal Developers
      • Patterns Library Maintenance
    • Legacy Website - cityofboston.gov
      • Animal Control
        • Dog Licenses
      • No Tow
        • Street Sweeping Reminders
        • Street Occupancy Alerts
        • Towing Alerts
        • Towing Search
        • Subscription Search
        • Proposed Restructure
          • Backend
        • Reillys Notes
      • Workers' Compensation Inquiry Form
      • Streetbook
      • Legacy Website - Maintenance
        • Animal Control Maintenance
        • Assessing Online (AOL) Maintenance
          • Knowledge-base
          • Disclosure Period
          • Annual PDF Initialization
          • Database Tables
        • No-Tow Maintenance
    • AgilePoint
      • AgilePoint: Adding Users
      • Migrating AGP Applications from one platform to another
    • The Hub - hub.boston.gov
      • The Hub - Maintenance
    • Maintenance
      • Updating SSL Certificates
    • Redirects
      • Redirecting from cityofboston.gov
      • URL redirects versus URL aliases - Drupal
      • DNS Redirects
    • Decommissioned Apps or Services
      • Archived Forms Information
      • CodeRed
      • Drupal 7
        • Deployment (2019)
          • Why do we peer-review pull-requests ?
      • Rentsmart
      • SnowStats
      • Ruby
    • Weglot translation
      • What to do in Weglot
      • What to do on the website or page
        • Softr
        • Drupal Powered Pages
        • Custom Pages
  • Projects
    • Project: Patterns Library Cleanup
      • Project: Refactoring Legacy CSS
        • Strategy
        • Regression Testing
        • Maintenance
    • Project: Upaknee
    • Project: Everbridge API + UI
    • Project: 311 CRM Upgrade
      • Project: City Worker Upgrade to City Worker 5
      • Project: Lagan 311 CRM upgrade to 15r4
    • Project: Fleet (Pattern Library Design System)
    • Project: Monorepo Decoupling
    • Inactive projects
      • Project: 311 (Salesforce Upgrade)
      • Project: Access Boston
        • General/Historical Documentation
          • Edit Config and Upload Icons
        • Processes
          • Process: Adding New Icon to Access Boston Website
          • Process: Non-icon Access Boston Feature or Bug Requests
          • Self-Service
      • Project: Alexa Skill
      • Project: Assessing Online
        • 2022 Notes
      • Project: Boards and commissions
      • Project: City Hall Appointment Scheduler
      • Project: CityScore
      • Project: Mobile Apps
      • Project: Permit Finder
      • Project: Public Notice Signage
      • Project: Registry Suite
        • Birth certificates
        • Marriage Certificates
        • Marriage Intention
        • Death Certificates
      • Project: Work With U.S. Digital Response Team
      • Project: TDM Points App
      • Project: Translation on boston.gov
  • External resources
    • Learning resources
    • Reference links
    • Applications and extensions
Powered by GitBook
On this page
  • Image folder structure
  • Image styles used
  • (s) = svg.
  • Site Breakpoints
  • Responsive Styles

Was this helpful?

Export as PDF
  1. Guides
  2. Drupal - boston.gov
  3. Custom Development & Configuration
  4. Site Development Notes
  5. Drupal UX-specific

Image Styles & UX

Image folder structure

sites/default/files
    ├── file                           DOCUMENT FILES ROOT
    |   ├── [dated]
    |   └── document_files
    |       ├── [year]
    |       └── unk
    ├── embed                          RICH-TEXT EDITOR ROOT
    |   ├── [file-firstchar]
    |   └── file
    |       └── [dated]
    ├── icons                          ICON LIBRARY ROOT FOLDER
    |   ├── circle                     - from designers
    |   ├── department                 - from designers
    |       └── red                    - from designers
    |   ├── drupal                     - from designers
    |   ├── experiential               - from designers
    |   └── map                        - from designers
    ├── img                            IMAGE ROOT FOLDER
    |   ├── [dated]                     - migrated files from public:// (root)
    |   ├── columns                    * Paragraph columns 
    |   |   └── [dated]                 - migrated files
    |   ├── event                      * Node event
    |   |   ├── intro_images            - from field_intro_image
    |   |   └── thumbnails              - from field_thumbnail
    |   ├── hero_image                 * Paragraph hero_image 
    |   |   └── [dated]                 - migrated files
    |   ├── how_to                     * Node how_to 
    |   |   └── intro_images            - from field_intro_image
    |   ├── icons(legacy)              * Holds svg icon files 
    |   |   ├── department              
    |   |   |   └── [dated]             - migrated files
    |   |   ├── emergency                  
    |   |   |   └── [dated]             - migrated files
    |   |   ├── feature                  
    |   |   |   └── [dated]             - migrated files
    |   |   ├── fyi                      
    |   |   |   └── [dated]             - migrated files
    |   |   ├── site_alert                   
    |   |   |   └── [dated]             - migrated files
    |   |   ├── status                   
    |   |   |   └── [dated]             - migrated files
    |   |   └── transactions             
    |   |       └── [dated]             - migrated files
    |   ├── library                    * Holds photographic images 
    |   |   └── photos                   
    |   |       └── [dated]             - migrated files
    |   ├── listing_page               * Node listing_page 
    |   |   └── intro_images            - from field_intro_image
    |   ├── maps                       * Paragraph listing_page 
    |   |   └── [dated]                 - from field_intro_image
    |   ├── person_profile             * Node person_profile
    |   |   └── photos                  - from field_photos
    |   ├── place_profile              * Paragraph place_profile
    |   |   └── intro_images            - from field_intro_image
    |   ├── post                       * Node post
    |   |   ├── intro_images            - from field_intro_image
    |   |   └── thumbnails              - from field_thumbnail
    |   ├── program                    * Node program_initiative_profiles
    |   |   ├── intro_images            - from field_intro_image
    |   |   └── logo                    - from field_logo
    |   ├── quote_person               * Paragraph quote
    |   |   └── photos                  - from field_photos
    |   ├── tabbed                     * Node tabbed
    |   |   └── intro_images            - from field_intro_image
    |   ├── topic                      * Node topic_page (guide)
    |   |   ├── intro_images            - from field_intro_image
    |   |   └── thumbnails              - from field_thumbnail
    |   ├── unk                        * Unknown origin (to migration)
    |   |   ├── intro_images            
    |   |   └── thumbnails              
    |   ├── user                       * User object field.
    |   |   └── photos                  - from user_picture
    |   └── video                      * Paragraph video
    |       └── [dated]                 - migrated files
    ├── private                         PRIVATE FILES
    └── unk                             UNKNOWN ORIGIN (to migration) FILES

Image styles used

Entity

Field

min/max resolution & max filesize

View: Style

Images

node:department_profile

field_icon

56x56/++ - 200KB

default: (i) square_icon_56px Article: (i) square_icon_56px Card: (i) square_icon_56px Article: not displayed Published By: (i) square_icon_56px

node:event

field_intro_image

1440x396/++ 8 MB

default: (b) intro_image_fields featured_item: (i) Featured Item Thumbnail

field_thumbnail

525x230/++ 8 MB

default: (b) thumbnail_event featured_item: (p) thumbnail_event

node:how_to

field_intro_image

1440x396/++ 8 MB

default: (b) intro_image_fields [all others (10)] not displayed

node:listing_page

field_intro_image

1440x396/++ 8MB

default: (b) intro_image_fields [all others (12)]: not displayed

node:person_profile

field_person_photo

350x350/++ 5MB

default: (p) person_photos listing: (p) person_photos embed: (p) person_photos

node:place_profile

field_intro_image

1440x396/++ 8MB

default: (b) intro_image_fields Listing: (p) card_images Teaser: not displayed

node:post

field_intro_image

1440x396/++ 8MB

default: (b) intro_image_fields featured_item: not displayedListing: not displayed Listing short: not displayed Teaser: not displayed

field_thumbnail

700x700/++ 5MB

default: not displayed featured_item: (p) featured_images Listing: (i) News Item -thumbnail (725x725) Listing short: (i) News Item -thumbnail (725x725) Teaser: (i) News Item -thumbnail (725x725)

node:program_i_p

field_intro_image

1440x396/++ 8MB

default: (b) intro_image_fields listing: (b) card_images

field_program_logo

800x800/++ 2MB

default: (p) logo_images Listing: not displayed

node:site_alert

field_icon

56x56/++ - 200KB

default: (s) n/a svg (square_icon_56px) Embed: (i) square_icon_56px Teaser: not displayed

node:status_item

field_icon

65x65/++ - 200KB

default: (s) n/a svg (square_icon_65px) listing: (s) n/a svg (square_icon_65px) teaser: (s) n/a svg (square_icon_65px)

node:tabbed_content

field_intro_image

1440x396/++ 8MB

default: (b) intro_image_fields

node:topic_page

field_intro_image

1440x396/++ 8MB

default: (b) intro_image_fields featured_topic not displayed listing_long: (b) intro_image_fields listing: (b) card_images

field_thumbnail

default: not displayed featured_topic (p) featured_images: not displayed listing: not displayed listing_long: not displayed

para:card

field_thumbnail

670x235/++ 2MB

default: (b) card_images

para:columns

field_image

200x200/++ 2MB

default: (i) Med Small Square (also Person photo a-mobile 1x (110x110))

para:fyi

field_icon

56x56/++ 200KB

default: (s) n/a svg (square_icon_56px)

para:hero_image

field_image

1440x800/++ 8 MB

default: (b) Hero fixed image fields Separated Title: not displayed

para:map

field_image

1440x800/++ 8 MB

default: (b) Photo Bleed Images

para:photo

field_image

1440x800/++ 8 MB

default: (b) Photo Bleed Images

para:quote

field_person_photo

350x350/++ 5 MB

default: (i) Person photo a-mobile 1x (110x110)

para:signup_emergency_alerts

field_icon

n/a svg

default: (s) n/a svg (square_icon_65px)

para:transactions

field_icon

180x100/++ - 2MB

default: (i) transaction_icon_180x100 group_of_links: (i) transaction_icon_180x100

para:video

field_image

1440x800/++ 8 MB

default: (b) Photo Bleed Images

tax:features

field_icon

svg

default: (s) n/a svg (square_icon_56px) sidebar_right: (s) n/a svg (square_icon_56px)

entity:user

user_picture

100x100/1024/1024 1 MB

default: (p) person_photos compact: (i) Person photo a-mobile 1x (110x110)

entity:media.image

image

+++/2400/2400 8 MB

default: (i) original image [all others]: (i) Media Fixed Height (100px)

Files

media.document

field_document

node:procurement

field_document

para:document

field_document

Key ++ = not specified (unlimited) (b) = background, responsive. (p) = HTML5 Picture, responsive. (i) = Image, svg or picture, non-reponsive.

(s) = svg.

Site Breakpoints

The following breakpoint grups and breakpoints are defined in D8:

Breakpoint

Start width

end width

note

group: hero

mobile

0

419

tablet

420

767

desktop

768

1439

large

1440

1919

Introduced in D8

oversize

1920

+++

have a notional max-width of 2400px

group: card

mobile

0

419

tablet

420

767

desktop

768

839

desktop

840

1439

large

1440

1919

oversize

1920

+++

have a notional max-width of 2400px

group: person

mobile

0

839

tablet

840

979

desktop

980

1279

There is also a breakpoint at 1300 in node:pip

desktop

1280

+++

have a notional max-width of 2400px

Responsive Styles

Breakpoint

responsive Style

style

size

All Nodes: field_intro_image (excluding node:post)

hero: mobile (<419px)

intro_image_fields

Intro image a-mobile 1x

420x115

hero: tablet (420-767px)

intro_image_fields

Intro image b-tablet 1x

768x215

hero: desktop (768-1439x)

intro_image_fields

Intro image c-desktop 1x

1440x396

hero: large (1440-1919px)

intro_image_fields

Intro image d-large 1x

1920x528

hero: oversize (>1920px)

intro_image_fields

Intro image e-oversize 1x

2400x660

node:post field_intro_image

hero: mobile (<419px)

Hero fixed image fields

Hero fixed a-mobile 1x

420x270

hero: tablet (420-767px)

Hero fixed image fields

Hero fixed b-tablet 1x

768x400

hero: desktop (768-1439x)

Hero fixed image fields

Hero fixed c-desktop 1x

1440x460

hero: large (1440-1919px)

Hero fixed image fields

Hero fixed d-large 1x

1920x460

hero: oversize (>1920px)

Hero fixed image fields

Hero fixed e-oversize 1x

2400x460

para:photo field_image para:video field_image para:hero field_image para:map field_image

hero: mobile (<419px)

Photo Bleed Images

Photo bleed a-mobile 1x

420x250

hero: tablet (420-767px)

Photo Bleed Images

Photo bleed b-tablet 1x

768x420

hero: desktop (768-1439x)

Photo Bleed Images

Photo bleed c-desktop 1x

1440x800

hero: large (1440-1919px)

Photo Bleed Images

Photo bleed d-large 1x

1920x800

hero: oversize (>1920px)

Photo Bleed Images

Photo bleed e-oversize 1x

2400x800

find

card: mobile (<419px)

Card Images 3w

Card grid vertical a-mobile 1x

335x117

card: tablet (420-767px)

Card Images 3w

Card grid vertical b-tablet 1x

615x215

card: desktop (768-839px)

Card Images 3w

Card grid vertical c-desktop 1x

670x235

card: desktop (840-1439x)

Card Images 3w

Card grid horizontal c-desktop 1x

382x134

card: large (1440-1919px)

Card Images 3w

Card grid horizontal d-large 1x

382x134

card: oversize (>1920px)

Card Images 3w

Card grid horizontal e-oversize 1x

382x134

para:column

this should be a 200x200 circle ??

card: mobile (<419px)

Card Images 3w

Photo bleed a-mobile 1x

335x117

card: tablet (420-767px)

Card Images 3w

Photo bleed b-tablet 1x

615x215

card: desktop (768-839px)

Card Images 3w

Photo bleed c-desktop 1x

670x235

card: desktop (840-1439x)

Card Images 3w

Photo bleed c-desktop 1x

382x134

card: large (1440-1919px)

Card Images 3w

Photo bleed d-large 1x

382x134

card: oversize (>1920px)

Card Images 3w

Photo bleed e-oversize 1x

382x134

post:field_thumbnail(feature)

card: mobile (<419px)

Featured Images

Featured image a-mobile 1x

335x350

card: tablet (420-767px)

Featured Images

Featured image b-tablet 1x

614x350

card: desktop (768-839px)

Featured Images

Featured image c-desktop 1x

671x388

card: desktop (840-1439x)

Featured Images

Featured image d-full 1x

586x388

card: large (1440-1919px)

Featured Images

Featured image d-full 1x

586x388

card: oversize (>1920px)

Featured Images

Featured image d-full 1x

586x388

node:person_profile:field_person_profile user:user_picture

person: mobile (<839px)

Person Photos

Person Photos a-mobile 1x

110x110

person: tablet (840-979px)

Person Photos

Person Photos b-tablet 1x

120x120

person: desktop (980-1279px)

Person Photos

Person Photos c-desktop 1x

148x148

person: desktop (>1280x)

Person Photos

Person Photos d-full 1x

173x173

node:pip:field_program_logo

person: mobile (<839px)

Logo Images

logo square a-mobile 1x

672x672

person: tablet (840-979px)

Logo Images

logo square b-tablet 1x

783x783

person: desktop (980-1279px)

Logo Images

logo square c-desktop 1x

360x360

person: desktop (>1280x)

Logo Images

logo square d-full 1x

360x360

PreviousDrupal UX-specificNextExample Content Pages

Last updated 5 years ago

Was this helpful?