anchor.diff:  
   %% @spec out_mime(Mime, Options) -> {Mime, Extension}
   %% @doc Return the preferred mime type of the image generated by resizing an image of a certain type and size.
  +out_mime("image/gif", _) ->
  +    %% gif is gif, daar kan je gif op innemen
  +    {"image/gif", ".gif"};
   out_mime(Mime, Options) when Mime == "image/png" orelse Mime == "image/gif" orelse Mime == "application/pdf" -> 
   	case lists:member("lossless", Options) orelse proplists:is_defined(lossless, Options) of
   		false -> {"image/jpeg", ".jpg"};
  
positive.code: filter2arg({make_image, "application/pdf"}, Width, Height) ->
      RArg = ["-resize ", integer_to_list(Width),$x,integer_to_list(Height)],
      {Width, Height, RArg};
  filter2arg({make_image, _Mime}, Width, Height) ->
      {Width, Height, []};
  filter2arg({correct_orientation, Orientation}, Width, Height) ->
  
negative.code:             {error, Reason}
      end.
  
  %% Return the ImageMagick input-file suffix.
  %% @spec infile_suffix(Mime) -> Suffix (string)
  infile_suffix(<<"image/gif">>) -> [];
  infile_suffix(_) -> "[0]".
       
  
  %% @spec size(MediaRef, Filters) -> {size, Width, Height, ResizedMime} | {error, Reason}
  %%   MediaRef = Filename | MediaProps
  