Skip to content

Commit 2c1774b

Browse files
committed
wip apply avatar if banner is not upload
1 parent fecf275 commit 2c1774b

File tree

9 files changed

+4
-0
lines changed

9 files changed

+4
-0
lines changed

app/assets/images/blog/after.png

-6.28 KB
Binary file not shown.

app/assets/images/blog/before.png

-6.52 KB
Binary file not shown.

app/assets/images/blog/cheeter.png

-47.4 KB
Binary file not shown.

app/assets/images/blog/newcopy.png

-6.33 KB
Binary file not shown.

app/assets/images/blog/newskills.png

-5.98 KB
Binary file not shown.

app/assets/images/blog/oldcopy.png

-7.71 KB
Binary file not shown.

app/assets/images/blog/oldskills.png

-5.53 KB
Binary file not shown.
-22.1 KB
Binary file not shown.

app/uploaders/banner_uploader.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@ def apply_tilt_shift
77
system "convert #{tmpfile} -sigmoidal-contrast 7x50% \\( +clone -sparse-color Barycentric '0,0 black 0,%h white' -function polynomial 4.5,-4.5,1 \\) -compose Blur -set option:compose:args 15 -composite #{current_path}"
88
File.delete(tmpfile)
99
end
10+
11+
def default_url
12+
model.avatar.url
13+
end
1014
end

0 commit comments

Comments
 (0)