_processed_images -> processed_images

This commit is contained in:
Vincent Prouillet 2018-09-15 13:16:46 +02:00
parent ee72a2c247
commit 62b89d0c72
13 changed files with 3 additions and 2 deletions

View file

@ -13,6 +13,7 @@
- Many many times faster (x10-x20) for sites with thousands of pages - Many many times faster (x10-x20) for sites with thousands of pages
- Add more Emacs temp file to the ignored patterns in `gutenberg serve` - Add more Emacs temp file to the ignored patterns in `gutenberg serve`
- Files starting with `.` are not considered pages anymore even if they end with `.md` - Files starting with `.` are not considered pages anymore even if they end with `.md`
- `_processed_images` folder for image processing has been renamed `processed_images` to avoid issues with GitHub Pages
## 0.4.2 (2018-09-03) ## 0.4.2 (2018-09-03)

View file

@ -23,7 +23,7 @@ use utils::fs as ufs;
use errors::{Result, ResultExt}; use errors::{Result, ResultExt};
static RESIZED_SUBDIR: &'static str = "_processed_images"; static RESIZED_SUBDIR: &'static str = "processed_images";
lazy_static! { lazy_static! {
pub static ref RESIZED_FILENAME: Regex = Regex::new(r#"([0-9a-f]{16})([0-9a-f]{2})[.]jpg"#).unwrap(); pub static ref RESIZED_FILENAME: Regex = Regex::new(r#"([0-9a-f]{16})([0-9a-f]{2})[.]jpg"#).unwrap();

View file

@ -26,7 +26,7 @@ resize_image(path, width, height, op, quality)
Gutenberg performs image processing during the build process and places the resized images in a subdirectory in the static files directory: Gutenberg performs image processing during the build process and places the resized images in a subdirectory in the static files directory:
``` ```
static/_processed_images/ static/processed_images/
``` ```
Resized images are JPEGs. Filename of each resized image is a hash of the function arguments, Resized images are JPEGs. Filename of each resized image is a hash of the function arguments,

View file

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

View file

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

View file

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View file

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View file

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

View file

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

View file

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

View file

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 9.6 KiB

View file

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

View file

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB