mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-04 04:10:33 +03:00
eef7932e94
refs #8868 - Removed image-size in blog logo fn for meta data and made it synchronous - Renamed `image-size-from-url.js` to `image-size.js` (incl. the test) - Added second fn `getImageSizeFromFilePath` that reads from local file storage - Added guard in `getImageSizeFromUrl` that checks if the image should be on local file storage and uses the new fn then instead - Added a fn `fetchDimensionsFromBuffer` that takes the file buffer and returns an `imageObject` with dimensions. - Added a new utils.js in `adapters/storage` for getting the file storage path |
||
---|---|---|
.. | ||
amp_url_spec.js | ||
asset_url_spec.js | ||
author_fb_url_spec.js | ||
author_image_spec.js | ||
author_url_spec.js | ||
blog_logo_spec.js | ||
canonical_url_spec.js | ||
context_object_spec.js | ||
cover_image_spec.js | ||
creator_url_spec.js | ||
description_spec.js | ||
excerpt_spec.js | ||
image-dimensions_spec.js | ||
keywords_spec.js | ||
modified_date_spec.js | ||
og_image_spec.js | ||
og_type_spec.js | ||
paginated_url_spec.js | ||
published_date_spec.js | ||
rss_url_spec.js | ||
schema_spec.js | ||
structured_data_spec.js | ||
title_spec.js | ||
twitter_image_spec.js | ||
url_spec.js |