質問編集履歴

2

sentense, base変数について追記しました

2020/07/14 04:40

投稿

shisha
shisha

スコア86

test CHANGED
File without changes
test CHANGED
@@ -26,6 +26,8 @@
26
26
 
27
27
  pointsize = 100
28
28
 
29
+ sentense = "testテスト\nhoge"
30
+
29
31
  text_color = "white"
30
32
 
31
33
  draw = "text 0, 0 '#{sentense}'"
@@ -33,6 +35,8 @@
33
35
  font = "./app/assets/fonts/GenEiGothicN-U-KL.otf"
34
36
 
35
37
 
38
+
39
+ base = "./app/assets/images/black.jpg"
36
40
 
37
41
  image = MiniMagick::Image.open(base)
38
42
 

1

ImageMagickのバージョン追記

2020/07/14 04:40

投稿

shisha
shisha

スコア86

test CHANGED
File without changes
test CHANGED
@@ -14,7 +14,9 @@
14
14
 
15
15
  gem image_processing 1.11.0(どこか内部で使っている?)
16
16
 
17
- Ruby version ruby 2.6.6p146 (2020-03-31 revision 67876) [x64-mingw32]
17
+ Ruby version ruby 2.6.6p146 (2020-03-31 revision 67876) [x64-mingw32] (rails about)
18
+
19
+ ImageMagick 7.0.10-22 Q16 x64 2020-06-27 (確認コマンド:convert -version)
18
20
 
19
21
 
20
22