Skip to content

Commit

Permalink
Rsync script, fix image gravity, fix lockfile for broken gems :|
Browse files Browse the repository at this point in the history
  • Loading branch information
granolocks committed Feb 5, 2018
1 parent 44a78bb commit 94fdf9f
Show file tree
Hide file tree
Showing 46 changed files with 9 additions and 18 deletions.
9 changes: 2 additions & 7 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@ source 'https://rubygems.org'

gem 'nanoc'
gem 'adsf'
gem 'redcarpet'
gem 'pry'
gem 'pygments.rb'

# for xml sitemap
gem 'builder'
gem 'redcarpet'


gem 'rake'
gem 'pry'
12 changes: 2 additions & 10 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,13 @@ GEM
method_source (0.8.2)
nanoc (3.6.5)
cri (~> 2.3)
posix-spawn (0.3.6)
pry (0.9.12.2)
coderay (~> 1.0.5)
method_source (~> 0.8)
slop (~> 3.4)
pygments.rb (0.5.2)
posix-spawn (~> 0.3.6)
yajl-ruby (~> 1.1.0)
rack (2.0.4)
rake (10.4.2)
redcarpet (3.0.0)
rack (1.5.2)
redcarpet (3.4.0)
slop (3.4.6)
yajl-ruby (1.1.0)

PLATFORMS
ruby
Expand All @@ -33,8 +27,6 @@ DEPENDENCIES
builder
nanoc
pry
pygments.rb
rake
redcarpet

BUNDLED WITH
Expand Down
5 changes: 4 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ namespace :generate do
File.unlink(image)
end

check = thumbnails.map{|x| File.exist?(x)}


images.each do |image|
dirpath = image.split('/')
filename = dirpath.pop
Expand All @@ -81,7 +84,7 @@ namespace :generate do
thumbnail = File.join(dirpath, "#{name}-thumbnail.#{ext}")

puts "converting #{image} to #{thumbnail}"
`convert #{image} -crop 280x280+100+100 #{thumbnail}`
`convert #{image} -scale 50% -crop 280x280+0+0 -gravity center #{thumbnail}`
end
end

Expand Down
Binary file modified content/images/gallery/calligrafitti/Abstract-thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/images/gallery/calligrafitti/Gallery-thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/images/gallery/calligrafitti/Inferno-thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/images/gallery/calligrafitti/Line-thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/images/gallery/calligrafitti/War-Banner-thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/images/gallery/calligrafitti/Wave-thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/images/gallery/illustration/Cliffs-thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/images/gallery/illustration/Cthulhu-thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/images/gallery/illustration/Drowning-thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/images/gallery/illustration/Fire-Mage-thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/images/gallery/illustration/Goat-Kidd-thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/images/gallery/illustration/Goat-thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/images/gallery/illustration/Pythagoras-thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/images/gallery/illustration/Rings-thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/images/gallery/illustration/Spider-thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/images/gallery/illustration/Spinning-Wheel-thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/images/gallery/illustration/Sugar-Shack-thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/images/gallery/illustration/Torch-Bearer-thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/images/gallery/lettering/Any-Dream-thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/images/gallery/lettering/Eccentric-thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/images/gallery/lettering/Moving-Fast-thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/images/gallery/lettering/Normalcy-thumbnail.jpg
Binary file modified content/images/gallery/lettering/RM-Drake-thumbnail.jpg
Binary file modified content/images/gallery/lettering/Sangha-Mantra-thumbnail.jpg
Binary file modified content/images/gallery/lettering/Steiner-thumbnail.jpg
Binary file modified content/images/gallery/lettering/Waste-Time-thumbnail.jpg
Binary file modified content/images/gallery/screenprinting/Dragon-thumbnail.jpg
Binary file modified content/images/gallery/screenprinting/Nightshade-1-thumbnail.jpg
Binary file modified content/images/gallery/screenprinting/Nightshade-2-thumbnail.jpg
Binary file modified content/images/gallery/screenprinting/Nightshade-3-thumbnail.jpg
Binary file modified content/images/gallery/screenprinting/Nightshade-4-thumbnail.jpg
Binary file modified content/images/gallery/watercolor/Eye-thumbnail.jpg
Binary file modified content/images/gallery/watercolor/Foxglove-thumbnail.jpg
Binary file modified content/images/gallery/watercolor/Hand-thumbnail.jpg
Binary file modified content/images/gallery/watercolor/Lake-Champlain-thumbnail.jpg
Binary file modified content/images/gallery/watercolor/PNW-thumbnail.jpg
Binary file modified content/images/gallery/watercolor/Superb-Owl-thumbnail.jpg
Binary file modified content/images/gallery/watercolor/Tower-thumbnail.jpg
1 change: 1 addition & 0 deletions rsync.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rsync -vrculzOFF output/* gabekoss.com:domains/gabekoss.com/html

0 comments on commit 94fdf9f

Please sign in to comment.