![]() I have tried that but it also fails: $ bundle exec jekyll serve -trace Jekyll-assets README says to invoke using bundle. (Gem::LoadError)įrom /usr/share/rubygems-integration/all/gems/bundler-2.3.15/lib/bundler/runtime.rb:25:in `block in setup'įrom /usr/share/rubygems-integration/all/gems/bundler-2.3.15/lib/bundler/spec_set.rb:138:in `each'įrom /usr/share/rubygems-integration/all/gems/bundler-2.3.15/lib/bundler/runtime.rb:24:in `map'įrom /usr/share/rubygems-integration/all/gems/bundler-2.3.15/lib/bundler/runtime.rb:24:in `setup'įrom /usr/share/rubygems-integration/all/gems/bundler-2.3.15/lib/bundler.rb:162:in `setup'įrom /var/lib/gems/3.1.0/gems/jekyll-4.3.2/lib/jekyll/plugin_manager.rb:52:in `require_from_bundler'įrom /var/lib/gems/3.1.0/gems/jekyll-4.3.2/exe/jekyll:11:in `' Prepending `bundle exec` to your command may solve this. usr/share/rubygems-integration/all/gems/bundler-2.3.15/lib/bundler/runtime.rb:309:in `check_for_activated_spec!': You have already activated eventmachine 1.3.0.dev.1, but your Gemfile requires eventmachine 1.2.7. ![]() However, after installing this jekyll-assets, I can no longer start jekyll. I normally invoke jekyll by running jekyll server -port 4006 -watch -livereload -livereload-port 14006 -trace -profile I think the reason I cannot make the jekyll-assets plugin work seems to be related to something with bundle… I then have a script to “build” the images. This could include the actual RAW images, or PSD files from Photoshop, etc… I then also store a web-format version of the image which would have the same file name but with. ![]() Here, I store the actual photographs or other graphical assets that I want to put on the site. I have a _images folder with my “source” images in. So that I can easily change src=picture-300x300.png to src=picture-900x900.png… In order to not have to open each image and resave it, I just generate multiple versions of each image and then encode the resolution, quality, etc in the filename. Often times, as I work with a website, I may want to quickly change an image from one resolution to another resolution to see how different it would look, etc. I have several websites built with jekyll. ![]() Const sharp = require('sharp') //^0.28.1Ĭonst PATH_IN = path.resolve(_dirname, 'sprites_1') Ĭonst PATH_OUT = path.resolve(_dirname, 'sprites_2') Ĭonst getFilepathIn = fileName => path.resolve(PATH_IN, fileName) Ĭonst getFilepathOut = fileNameWithoutExt => path.resolve(PATH_OUT, `$) Ĭonst inFilesWithoutExt = inFiles.map( item => item.slice(0, -4) ) įor (const of inFilesWithoutExt.I would love to get some advice on how to handle images in a good way.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |