Skip to content
Extraits de code Groupes Projets
Valider 7d1f7326 rédigé par danielgrippi's avatar danielgrippi
Parcourir les fichiers

use modulate instead of -brightness-contrast for now, as the cedar stack has...

use modulate instead of -brightness-contrast for now, as the cedar stack has an outdated version of mogrify [ci skip]
parent 3f6a862a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -19,7 +19,10 @@ class WallpaperUploader < CarrierWave::Uploader::Base ...@@ -19,7 +19,10 @@ class WallpaperUploader < CarrierWave::Uploader::Base
def darken def darken
manipulate! do |img| manipulate! do |img|
img.brightness_contrast "-40x-50" # img.brightness_contrast "-40x-50"
# thanks, heroku.
img.modulate "40,40"
img = yield(img) if block_given? img = yield(img) if block_given?
img img
end end
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter