Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Suppress warning messages when running identify.
  • Loading branch information
mworrell committed Sep 10, 2010
1 parent 25cf9b3 commit 9df4334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/support/z_media_identify.erl
Expand Up @@ -122,7 +122,7 @@ identify_file_os(unix, File, OriginalFilename) ->
%% @doc Try to identify the file using image magick
identify_file_imagemagick(ImageFile) ->
CleanedImageFile = z_utils:os_filename(ImageFile ++ "[0]"),
Result = os:cmd("identify -quiet " ++ CleanedImageFile),
Result = os:cmd("identify -quiet " ++ CleanedImageFile ++ " 2>/dev/null"),
% ["test/a.jpg","JPEG","3440x2285","3440x2285+0+0","8-bit","DirectClass","2.899mb"]
% sometimes:
% test.jpg[0]=>test.jpg JPEG 2126x1484 2126x1484+0+0 DirectClass 8-bit 836.701kb 0.130u 0:02
Expand Down

0 comments on commit 9df4334

Please sign in to comment.