git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

  1. 22 Aug, 2017 1 commit
  2. 20 Jul, 2016 2 commits
  3. 15 Jul, 2016 2 commits
  4. 04 May, 2016 2 commits
  5. 18 Apr, 2016 1 commit
  6. 21 Mar, 2016 1 commit
  7. 07 Mar, 2016 1 commit
  8. 10 Feb, 2016 1 commit
  9. 01 Oct, 2015 1 commit
  10. 16 Jul, 2015 1 commit
  11. 12 Mar, 2015 1 commit
  12. 05 Mar, 2015 1 commit
  13. 04 Mar, 2015 3 commits
  14. 25 Feb, 2015 3 commits
  15. 26 Jan, 2015 1 commit
  16. 25 Jan, 2015 3 commits
  17. 17 Jun, 2014 2 commits
  18. 05 Jun, 2014 1 commit
  19. 14 May, 2014 1 commit
  20. 12 May, 2014 2 commits
  21. 22 Apr, 2014 1 commit
  22. 21 Apr, 2014 2 commits
    • mmn's avatar
      Be more precise in return array from image scaling · 5fbb6688
      mmn authored
      5fbb6688
    • mmn's avatar
      Dynamically generate thumbnails (see full text) · d59eb5e1
      mmn authored
      The File object now stores width and height of files that can
      supply this kind of information. Formats which we can not read
      natively in PHP do not currently benefit from this. However an
      event hook will be introduced later.
      
      The CreateFileImageThumbnail event is renamed to:
      CreateFileImageThumbnailSource to clarify that the hooks should not
      generate their own thumbnails but only the source image. Also it now
      accepts File objects, not MediaFile objects.
      
      The thumbnail generation is documented in the source code. For
      developers, call 'getThumbnail' on a File object and hope for the best.
      
      Default thumbnail sizes have increased to be more appealing.
      d59eb5e1
  23. 16 Apr, 2014 2 commits
  24. 01 Oct, 2013 1 commit
    • mmn's avatar
      Properly unlink all old avatars when deleting/uploading a new · b0dfc70a
      mmn authored
      We're also now using $config['image']['jpegquality'] to determine the
      quality setting for resized images.
      
      To set Avatar max size, adjust $config['avatar']['maxsize']
      
      The getAvatar call now throws exceptions too. Related changes applied.
      Now let's move Profile->avatarUrl to the Avatar class!
      b0dfc70a
  25. 28 Jan, 2011 1 commit
  26. 24 Jan, 2011 1 commit
    • Brion Vibber's avatar
      Fix for ticket #3007: .bmp avatar uploads weren't being properly converted to PNG in all cases · 820dd293
      Brion Vibber authored
      Part of the reported issue was previuosly fixed by dc497ed0 (smaller size images being blanked).
      This commit fixes the remaining bug with original-size avatars being left as BMP (which could include the 96px size for instance, which could cause problems in browsers not supporting BMP natively)
      
      Added ImageFile::copyTo() as a convenient alias for resizeTo() when not resizing; this performs the BMP/XPM/XBM->PNG conversion if needed, or copies the original file.
      Copying instead of using move_uploaded_file() is fine here since:
      a) the files are cleaned up on script completion anyway (vs moving to remove it)
      b) we're already performing getimagesize() and possibly load/resize on the file before this point (vs needing to move the file into a usable area to work with open_basedir restrictions that prevent working directly with uploaded files in the temp dir; since this would fail anyway, we lose nothing)
      
      ImageFile::preferredType() now works on $this->type instead of asking for one, to make it handier to use from outside. (This is still needed in order for calling code to generate a target filename.)
      
      Recommended for future:
      * additional consolidation between the various ways of uploading avatars (touched avatarsettings, grouplogo, and apiaccountupdateprofileimage with similar minor changes)
      * consolidate type checks and file naming into Avatar class
      820dd293
  27. 09 Nov, 2010 1 commit