anchor.diff:                      z_utils:assert(EndWidth  < ?MAX_WIDTH, image_too_wide),
                       z_utils:assert(EndHeight < ?MAX_HEIGHT, image_too_high),
                       Args1   = lists:flatten(z_utils:combine(32, CmdArgs)),
  -                    Cmd     = ["convert ", z_utils:os_filename(InFile++"[0]"), " ", Args1, " ", z_utils:os_filename(OutFile)],
  +                    ?DEBUG(Mime),
  +                    Cmd     = ["convert ", z_utils:os_filename(InFile++infile_suffix(Mime)), " ", Args1, " ", z_utils:os_filename(OutFile)],
                       file:delete(OutFile),
                       ok = filelib:ensure_dir(OutFile),
  +                    ?DEBUG(lists:flatten(Cmd)),
                       Result  = z_media_preview_server:exec(lists:flatten(Cmd), OutFile),
                       case filelib:is_regular(OutFile) of
                           true ->
  
positive.code:             {error, Reason}
      end.
  
  
  %% @spec size(MediaRef, Filters) -> {size, Width, Height, ResizedMime} | {error, Reason}
  %%   MediaRef = Filename | MediaProps
  
negative.code:                     {colorspace, "RGB"} | Filters1],
      Filters3 = case is_blurred(Filters2) of
                      true ->  Filters2 ++ [{quality}];
                      false -> case Mime of
                                   <<"image/gif">> -> Filters2 ++ [{quality}];
                                   _ -> Filters2 ++ [{sharpen_small}, {quality}]
                               end
                 end,
      Filters4 = case proplists:get_value(background, Filters3) of
                      undefined -> default_background(Mime) ++ Filters3;
                      _ -> Filters3
                 end,
  
  