Ghost/core/test/unit/metadata
Aileen Nowak eef7932e94 Refactor: fetch image dimensions from local file storage (#8900)
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
2017-09-05 14:13:22 +02:00
..
amp_url_spec.js 🔥 remove posts.markdown field (#8497) 2017-05-31 16:46:29 +02:00
asset_url_spec.js 🐛 Blog icon improvements (#8298) 2017-04-10 12:04:46 +01:00
author_fb_url_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
author_image_spec.js 🙀 Image field naming & new img_url helper (#8364) 2017-04-24 18:21:47 +01:00
author_url_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
blog_logo_spec.js Refactor: fetch image dimensions from local file storage (#8900) 2017-09-05 14:13:22 +02:00
canonical_url_spec.js 🔥 remove posts.markdown field (#8497) 2017-05-31 16:46:29 +02:00
context_object_spec.js 🙀 Image field naming & new img_url helper (#8364) 2017-04-24 18:21:47 +01:00
cover_image_spec.js 🙀 Image field naming & new img_url helper (#8364) 2017-04-24 18:21:47 +01:00
creator_url_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
description_spec.js Facebook and Twitter data per post feature (#8827) 2017-08-03 15:48:39 +04:00
excerpt_spec.js 🐛 Fixed custom post excerpt length (#8826) 2017-08-02 15:09:12 +04:00
image-dimensions_spec.js Refactor: fetch image dimensions from local file storage (#8900) 2017-09-05 14:13:22 +02:00
keywords_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
modified_date_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
og_image_spec.js Facebook and Twitter data per post feature (#8827) 2017-08-03 15:48:39 +04:00
og_type_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
paginated_url_spec.js 🎨 🚑 do not use testurl.com in tests (#8254) 2017-04-03 16:29:36 +01:00
published_date_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
rss_url_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
schema_spec.js Custom Post Excerpt Feature (#8792) 2017-08-01 12:39:34 +04:00
structured_data_spec.js Facebook and Twitter data per post feature (#8827) 2017-08-03 15:48:39 +04:00
title_spec.js Facebook and Twitter data per post feature (#8827) 2017-08-03 15:48:39 +04:00
twitter_image_spec.js Facebook and Twitter data per post feature (#8827) 2017-08-03 15:48:39 +04:00
url_spec.js 🔥 remove posts.markdown field (#8497) 2017-05-31 16:46:29 +02:00