Showing /app/app/views/comments/_comment.html.erb where line #12 raised:

`convert /tmp/ActiveStorage-2705-20240328-98-pi3zr3.jpg[0] -auto-orient -resize 200x200^ -crop 200x200+0+0 /tmp/image_processing20240328-98-1k563jl.png` failed with status: 1 and error:
convert-im6.q16: insufficient image data in file `/tmp/ActiveStorage-2705-20240328-98-pi3zr3.jpg' @ error/jpeg.c/ReadJPEGImage/1117.
convert-im6.q16: no images defined `/tmp/image_processing20240328-98-1k563jl.png' @ error/convert.c/ConvertImageCommand/3258.
Extracted source (around line #7):
5
6
7
8
9
10
              
if user.photo.attached?
if variant_key = :small
variant_key.nil? ? user.photo : user.photo.variant(resize: '200x200^', crop: '200x200+0+0').processed
elsif variant_key = :thumb
variant_key.nil? ? user.photo : user.photo.variant(resize: '45x45^', crop: '45x45+0+0').processed
end

Trace of template inclusion: #<ActionView::Template app/views/comments/_comments.html.erb locals=["commentable", "comments"]>, #<ActionView::Template app/views/projects/_discussion.html.erb locals=[]>

Rails.root: /app

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"project_id"=>"the-100-year-life"}

Response

Headers:

None