質問編集履歴

2

補足情報の追加

2023/09/22 00:40

投稿

CreateMoto
CreateMoto

スコア0

test CHANGED
File without changes
test CHANGED
@@ -59,6 +59,25 @@
59
59
  - Controllerにベタ書きするとエラーなく動きます。
60
60
  - intervention/imageをインストールして、`new Image()`としても結果は同じでした。
61
61
 
62
+ #### /usr/bin/convert/の利用
63
+ ```
64
+ $input = '省略';
65
+ $output = '省略';
66
+
67
+ $command = "/usr/bin/convert -density 200 -resize 1600x1600 $input $output";
68
+ system($command);
69
+ ```
70
+
71
+ 上記のように`/usr/bin/conver`コマンドで実行してみましたが、以下のエラーメッセージが出ます。
72
+
73
+ ```
74
+ sh: /usr/bin/convert: No such file or directory
75
+ ```
76
+
77
+ こちらも同じく、Controller内やDockerDesktopのターミナルから実行すると正しくコマンドが実行され、Imagickで画像処理が可能でした。
78
+
79
+ ---
80
+ Jobの中にコードを入れると動かないようです。
62
81
  Jobの中では、importができないのでしょうか?
63
82
 
64
83
  ### 補足情報(FW/ツールのバージョンなど)

1

不足していた点の追記をしました。

2023/09/21 22:46

投稿

CreateMoto
CreateMoto

スコア0

test CHANGED
File without changes
test CHANGED
@@ -55,9 +55,9 @@
55
55
  ```
56
56
 
57
57
  ### 試したこと
58
-
59
- - Mac側にもImagiMagickインストールしても同じした
58
+ - ImagickはDockerfileに追記してインストール済み
59
+ - Controllerにベタ書きするとエラーなく動きます。
60
- - intervention/imageをインストールして、`new Image()`として結果は同じでした。
60
+ - intervention/imageをインストールして、`new Image()`として結果は同じでした。
61
61
 
62
62
  Jobの中では、importができないのでしょうか?
63
63