You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i run hexo clean;hexo generate everything works. Subsequent runs of hexo generate delete the generated image files.
Details
I've configured the plugin as follows:
# Configuration for hexo-image-sizesimage_sizes:
pattern: !!js/regexp /\.(gif|jpg|jpeg|png)$/iprofiles:
body:
width: 700# height will adjust to preserve aspect ratiosm-body:
width: 400sq-thumbnail:
width: 100# Image will be cropped to a squareheight: 100huge:
height: 1000allowEnlargement: truedefaultProfile: bodylink: truelinkProfile: hugeuseAltForTitle: true
Within my post I have the following code:
{% imsize %}
src: /images/20190119/laptop-specs.png
alt: Apple Macbook Pro specs
title: Apple Macbook Pro specs
profile: sm-body
link: false
{% endimsize %}
When I run hexo clean;hexo generate everything works and I get the following output:
INFO Deleted database.
INFO Deleted public folder.
INFO Start processing
INFO Files loaded in 309 ms
INFO Generated: sitemap.xml
INFO Generated: atom.xml
INFO Generated: index.html
INFO Generated: tags/index.html
INFO Generated: categories/index.html
INFO Generated: archives/index.html
INFO Generated: img/bg-pattern.png
INFO Generated: archives/2019/01/index.html
INFO Generated: categories/Development/macOS/index.html
INFO Generated: archives/2019/index.html
INFO Generated: categories/Development/index.html
INFO Generated: images/20190119/sm-body-laptop-specs.png
INFO Generated: css/style.css
INFO Generated: js/main.js
INFO Generated: images/20190119/sm-body-desktop-specs.png
INFO Generated: categories/Development/macOS/Software/Hardware/index.html
INFO Generated: categories/Development/macOS/Software/index.html
INFO Generated: images/20190119/laptop-specs.png
INFO Generated: images/20190119/desktop-specs.png
INFO Generated: 2019/01/20/hexo-serverless/index.html
INFO Generated: 2019/01/19/development-environment/index.html
INFO 21 files generated in 387 ms
When I then run hexo generate the resized images are deleted and my post no longer contains the images. Here's the output:
INFO Start processing
INFO Files loaded in 167 ms
INFO Deleted: images/20190119/sm-body-desktop-specs.png
INFO Deleted: images/20190119/sm-body-laptop-specs.png
INFO 0 files generated in 218 ms
The text was updated successfully, but these errors were encountered:
Quick Summary
When i run
hexo clean;hexo generate
everything works. Subsequent runs ofhexo generate
delete the generated image files.Details
I've configured the plugin as follows:
Within my post I have the following code:
When I run
hexo clean;hexo generate
everything works and I get the following output:When I then run
hexo generate
the resized images are deleted and my post no longer contains the images. Here's the output:The text was updated successfully, but these errors were encountered: