Ich habe einige Probleme mit Büroklammer. Wenn ich ein "#" nach der Größe (zum Skalieren und Zuschneiden) habe, erhalte ich einen 422-Fehler. Mein Log sagt dies:Paperclip 422 Fehler
Command :: convert '/tmp/**** (20130110)20130311-13571-xxasmt.png[0]' -auto-orient -resize "150x150#" '/tmp/**** (20130110)20130311-13571-xxasmt20130311-13571-1anrx0y'
[paperclip] An error was received while processing: #<Paperclip::Error: There was an error processing the thumbnail for **** (20130110)20130311-13571-xxasmt>
Completed 422 Unprocessable Entity in 2785ms (Views: 0.8ms | ActiveRecord: 9.1ms)
Das ist mein Büroklammer Code im Modell:
has_attached_file :image,
:styles => {
:medium => "300x300#",
:thumb => "100x100>",
:standard => "150x150>"
},
:storage => :s3,
:s3_credentials => "#{Rails.root}/config/s3.yml",
:bucket => "convertkit",
:s3_protocol => "https"
bin ich etwas fehlt?
Überprüfen Sie das stderr-Protokoll Ihres Anwendungsservers. Es gibt wahrscheinlich eine Ausgabe von imagemagicks Convert-Utility, die anzeigt, warum sie nicht verarbeitet werden kann. –
Wo ist das Stderr-Protokoll? –
Das hängt von Ihrem Webserver und OS ab. Für Apache auf Redhat-ish-Betriebssystemen wäre es zum Beispiel '/ var/log/httpd/error_log'. –