discourse/spec/fixtures/images
David Taylor 0e303c7f5d
FEATURE: Automatically generate optimized site metadata icons (#7372)
This change automatically resizes icons for various purposes. Admins can now upload `logo` and `logo_small`, and everything else will be auto-generated. Specific icons can still be uploaded separately if required.

## Core

- Adds an SiteIconManager module which manages automatic resizing and fallback

- Icons are looked up in the OptimizedImage table at runtime, and then cached in Redis. If the resized version is missing for some reason, then most icons will fall back to the original files. Some icons (e.g. PWA Manifest) will return `nil` (because an incorrectly sized icon is worse than a missing icon). 

- `SiteSetting.site_large_icon_url` will return the optimized version, including any fallback. `SiteSetting.large_icon` continues to return the upload object. This means that (almost) no changes are required in core/plugins to support this new system.

- Icons are resized whenever a relevant site setting is changed, and during post-deploy migrations

## Wizard

- Allows `requiresRefresh` wizard steps to reload data via AJAX instead of a full page reload

- Add placeholders to the **icons** step of the wizard, which automatically update from the "Square Logo"

- Various copy updates to support the changes

- Remove the "upload-time" resizing for `large_icon`. This is no longer required.

## Site Settings UX

- Move logo/icon settings under a new "Branding" tab

- Various copy changes to support the changes

- Adds placeholder support to the `image-uploader` component

- Automatically reloads site settings after saving. This allows setting placeholders to change based on changes to other settings

- Upload site settings will be assigned a placeholder if SiteIconManager `responds_to?` an icon of the same name

## Dashboard Warnings

- Remove PWA icon and PWA title warnings. Both are now handled automatically.

## Bonus

- Updated the sketch logos to use @awesomerobot's new high-res designs
2019-05-01 14:44:45 +01:00
..
cropped.png Add compatibility for ImageMagick7. 2018-07-17 15:50:58 +08:00
custom-theme-icon-sprite.svg DEV: Ignore SVG sprite symbols missing ids 2019-03-18 22:07:19 -04:00
downsized.png Add compatibility for ImageMagick7. 2018-07-17 15:50:58 +08:00
fake.jpg
huge.jpg
image_no_extension
image.svg FIX: add support for style element in SVGs 2019-02-07 12:09:06 +01:00
large & unoptimized.png
large_icon_correct.png FEATURE: PWA compatibility checks in the Dashboard (#6850) 2019-01-09 08:46:11 +08:00
large_icon_incorrect.png FEATURE: PWA compatibility checks in the Dashboard (#6850) 2019-01-09 08:46:11 +08:00
logo-dev.png
logo.jpg FEATURE: Automatically generate optimized site metadata icons (#7372) 2019-05-01 14:44:45 +01:00
logo.png
not_an_image correct specs 2018-08-20 12:46:14 +10:00
png_as.bin FIX: always test and coerce to image on upload 2018-08-20 12:18:59 +10:00
pngquant.png FEATURE: introduce lossy color optimization on resized pngs 2019-01-02 17:20:02 +11:00
resized.png Add compatibility for ImageMagick7. 2018-07-17 15:50:58 +08:00
should_be_jpeg.png FEATURE: do not switch to JPEG unless you meet 75k byte savings 2018-11-21 11:01:08 +11:00
smallest.ico FEATURE: Upload Site Settings. (#6573) 2018-11-14 15:03:02 +08:00
smallest.png FIX: Moving upload to tombstone should update modification time. 2018-09-18 10:48:29 +08:00
svg.png Add spec for 4bf3bf6786. 2018-07-26 09:16:14 +08:00
webp_as.bin Drop tif, tiff, webp and bmp from supported images. 2018-09-12 09:29:54 +08:00