diff --git a/app/services/problem_check/image_magick.rb b/app/services/problem_check/image_magick.rb
index ce660690621..4a07e5ef386 100644
--- a/app/services/problem_check/image_magick.rb
+++ b/app/services/problem_check/image_magick.rb
@@ -5,7 +5,7 @@ class ProblemCheck::ImageMagick < ProblemCheck
 
   def call
     return no_problem if !SiteSetting.create_thumbnails
-    return no_problem if Kernel.system("command -v magick >/dev/null;")
+    return no_problem if Kernel.system("command -v convert >/dev/null;")
 
     problem
   end
diff --git a/spec/fabricators/upload_fabricator.rb b/spec/fabricators/upload_fabricator.rb
index bc9c236c135..b5727567f6a 100644
--- a/spec/fabricators/upload_fabricator.rb
+++ b/spec/fabricators/upload_fabricator.rb
@@ -49,7 +49,7 @@ Fabricator(:image_upload, from: :upload) do
 
   after_create do |upload, transients|
     file = Tempfile.new(%w[fabricated .png])
-    `magick -size #{upload.width}x#{upload.height} -depth #{transients[:color_depth]} xc:#{transients[:color]} "#{file.path}"`
+    `convert -size #{upload.width}x#{upload.height} -depth #{transients[:color_depth]} xc:#{transients[:color]} "#{file.path}"`
 
     upload.url = Discourse.store.store_upload(file, upload)
     upload.sha1 = Upload.generate_digest(file.path)
@@ -101,7 +101,7 @@ end
 Fabricator(:s3_image_upload, from: :upload_s3) do
   after_create do |upload|
     file = Tempfile.new(%w[fabricated .png])
-    `magick -size #{upload.width}x#{upload.height} xc:white "#{file.path}"`
+    `convert -size #{upload.width}x#{upload.height} xc:white "#{file.path}"`
 
     upload.url = Discourse.store.store_upload(file, upload)
     upload.sha1 = Upload.generate_digest(file.path)
