Commit Graph

45 Commits

Author SHA1 Message Date
Dion Hulse
c552d48674 Fix image_resize() dependencies by moving wp_load_image() from admin includes to wp-includes. Fixes #7279
git-svn-id: https://develop.svn.wordpress.org/trunk@13860 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-28 03:39:00 +00:00
Andrew Nacin
d4854cef04 Use utf8_encode() consistently in wp_read_image_metadata(). Also add some whitespace. props miqrogroove, see #11417, see #12095
git-svn-id: https://develop.svn.wordpress.org/trunk@13249 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-20 12:09:30 +00:00
Andrew Nacin
d824d6bbd4 Improved IPTC and EXIF handling. Drag a wider net and also try to avoid numeric attachment slugs where possible. Props miqrogroove. See #11417
git-svn-id: https://develop.svn.wordpress.org/trunk@13244 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-20 09:17:34 +00:00
Ryan Boren
c01fb90ff1 Deprecate wp_shrink_dimension(), add wp-admin/includes/deprecated.php. Props filosofo. fixes #11967
git-svn-id: https://develop.svn.wordpress.org/trunk@12823 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-25 18:50:01 +00:00
Peter Westwood
2e2ad12171 Add missing version numbers to _deprecated_argument() calls.
Remove deprecated argument from xfn_check() calls.
Pass version number to deprecated_file_included, deprecated_function_run and deprecated_argument_run actions.
Fixes #11386 props nacin.

git-svn-id: https://develop.svn.wordpress.org/trunk@12680 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-09 10:03:55 +00:00
Peter Westwood
b5a43efa73 Introduce a single function for getting all the intermediate image sizes to be used both when adding attachements and deleting. Fixes #10263 props scribu.
git-svn-id: https://develop.svn.wordpress.org/trunk@12659 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-08 08:51:12 +00:00
Peter Westwood
a752e6b561 Updates and improvements to _depreceated_argument. See #11386 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12584 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-30 16:23:39 +00:00
Ryan Boren
7ccd64fbe7 Retunr WP_Error from wp_crop_image() and image_resize(). Props mdwaffe. fixes #9922
git-svn-id: https://develop.svn.wordpress.org/trunk@12524 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 18:39:31 +00:00
Mark Jaquith
ab97039f96 Post/Page Image was too generic a name. Post/Page Thumbnail is more clear, even if you can create very large thumbnail images if you so choose.
git-svn-id: https://develop.svn.wordpress.org/trunk@12351 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-10 06:14:36 +00:00
Peter Westwood
8d300bf5b7 s/size/s/ fixes #11370 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12346 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-09 09:44:53 +00:00
Mark Jaquith
54410e03f6 Introducing set_post_image_size(w, h, crop) so themes can register their special size/crop for canonical post images. WP will create this size/crop upon upload, so your canonical post images fit your space exactly!
git-svn-id: https://develop.svn.wordpress.org/trunk@12342 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-08 21:08:19 +00:00
Andrew Ozz
52bff7f918 Fix image meta after editing image, disable the Save button when no changes, fixes #11115
git-svn-id: https://develop.svn.wordpress.org/trunk@12163 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-11 11:24:01 +00:00
Andrew Ozz
4f22e99cf5 Image editing (first run). Includes code by stephanreiter, see #10528
git-svn-id: https://develop.svn.wordpress.org/trunk@11911 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-10 22:07:33 +00:00
Andrew Ozz
b310ef4a08 Add attachment ID to the wp_generate_attachment_metadata filter, props taco1991, fixes #10494
git-svn-id: https://develop.svn.wordpress.org/trunk@11747 602fd350-edb4-49c9-b593-d223f7449a82
2009-07-27 23:08:21 +00:00
Andrew Ozz
3bf18aa189 Banishing ASCII quotes and apostrophes, props demetris, fixes #9655
git-svn-id: https://develop.svn.wordpress.org/trunk@11190 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-05 04:28:05 +00:00
Peter Westwood
0560f26f76 Allow a plugin to change the jpeg image quality. Fixes #9245 props filosofo.
git-svn-id: https://develop.svn.wordpress.org/trunk@10682 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-02 21:55:40 +00:00
Ryan Boren
baaaa352ba Strip trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@10150 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-09 18:03:31 +00:00
Andrew Ozz
abdc564e7a Fix thumbnails creation for 8bpp and CMYK images, props DD32, fixes #7039 fixes #8231
git-svn-id: https://develop.svn.wordpress.org/trunk@9727 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-15 23:16:36 +00:00
Ryan Boren
6d727a9c2b phpdoc for wp-admin. Props jacobsantos. see #7527
git-svn-id: https://develop.svn.wordpress.org/trunk@9119 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-10 18:21:16 +00:00
Ryan Boren
f885a9f93a phpdoc for wp-admin/includes from jacobsantos. see #7527
git-svn-id: https://develop.svn.wordpress.org/trunk@9053 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-02 01:03:26 +00:00
Ryan Boren
3e43adeb6e phpdoc for wp-admin/includes from jacobsantos. see #7527
git-svn-id: https://develop.svn.wordpress.org/trunk@8912 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-17 00:40:10 +00:00
Ryan Boren
9e7d65df0d Thumbnail and exif fixes from DD32. see #7622
git-svn-id: https://develop.svn.wordpress.org/trunk@8879 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-13 18:04:20 +00:00
Ryan Boren
9045798e95 Make attachment file path relative to the upload dir. Don't use GUID to find attachement URL. Props DD32. see #7622
git-svn-id: https://develop.svn.wordpress.org/trunk@8796 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-02 22:55:39 +00:00
Peter Westwood
903915c067 utf8 encode data from IPTC tags. Fixes #7495 for trunk props Txanny.
git-svn-id: https://develop.svn.wordpress.org/trunk@8744 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-27 06:54:48 +00:00
Ryan Boren
da4e0eca48 Separate Large and Full image sizes. Props tellyworth. fixes #7151
git-svn-id: https://develop.svn.wordpress.org/trunk@8612 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-11 03:54:26 +00:00
Ryan Boren
2272a1a950 Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@8600 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-09 05:36:14 +00:00
Ryan Boren
e41144b4d4 Suppress exif_read_data() errors. Props tellyworth. fixes #6571 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7673 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-14 20:19:15 +00:00
Ryan Boren
49e64b74e2 Use is_numeric instead of ctype_digit. Props josephscott. fixes #5481
git-svn-id: https://develop.svn.wordpress.org/trunk@7549 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-27 16:56:56 +00:00
Matt Mullenweg
88bb527a19 Creating intermediate sizes, better thumbnails, and other image improvements. Hat tip: tellyworth.
git-svn-id: https://develop.svn.wordpress.org/trunk@7135 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-03 04:17:37 +00:00
Ryan Boren
ebf8442951 image_resize() and friends from tellyworth. fixes #6005
git-svn-id: https://develop.svn.wordpress.org/trunk@7041 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-26 18:46:03 +00:00
Ryan Boren
6aacdf4c91 Image size options from tellyworth. fixes #5933
git-svn-id: https://develop.svn.wordpress.org/trunk@6952 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-21 06:00:15 +00:00
Matt Mullenweg
bf2d50bf6b Blow out mem limit, slightly larger thumbnails.
git-svn-id: https://develop.svn.wordpress.org/trunk@6786 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-11 09:02:44 +00:00
Ryan Boren
adbb51b535 Use absint
git-svn-id: https://develop.svn.wordpress.org/trunk@6784 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-11 08:14:01 +00:00
Matt Mullenweg
129dddd3a3 Lowercase extensions too, dynamically change when we try to create thumbnails by memory limit.
git-svn-id: https://develop.svn.wordpress.org/trunk@6783 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-11 08:02:01 +00:00
Ryan Boren
3a18b96c9b Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@6726 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-05 06:47:27 +00:00
Ryan Boren
fd80901dcf New image uploader from tellyworth. see #5609
git-svn-id: https://develop.svn.wordpress.org/trunk@6579 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-09 08:14:29 +00:00
Matt Mullenweg
090108bfc8 Post screen improvements^H^H^H, er, changes. Will file tickets for todos.
git-svn-id: https://develop.svn.wordpress.org/trunk@6544 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-03 08:03:29 +00:00
Peter Westwood
f198d41f1b Fix funky formatting
git-svn-id: https://develop.svn.wordpress.org/trunk@6454 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-21 09:23:59 +00:00
Peter Westwood
6a0ae6a9ed Preserve PNG transparency/alpha during thumbnail creation. Fixes #2805 props Libertus/Otto42.
git-svn-id: https://develop.svn.wordpress.org/trunk@6439 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-20 22:24:39 +00:00
Peter Westwood
afd0b9a623 Ensure we don't call exif_read_data() on unsupported file types. Fixes #5397 props DD32
git-svn-id: https://develop.svn.wordpress.org/trunk@6438 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-20 22:18:28 +00:00
Ryan Boren
029a74ca44 Remove unused variables. Props DD32. see #5418
git-svn-id: https://develop.svn.wordpress.org/trunk@6363 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-06 06:37:30 +00:00
Ryan Boren
f5013e7925 Extract and save image metadata. Props tellyworth. fixes #5162
git-svn-id: https://develop.svn.wordpress.org/trunk@6313 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-05 00:01:26 +00:00
Peter Westwood
be99735638 Refactor of wp-admin/includes/image.php. Fixes #5312, #4151, #4709, #5304 props DD32.
git-svn-id: https://develop.svn.wordpress.org/trunk@6309 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-03 18:33:19 +00:00
Ryan Boren
b046d67f41 Trim empty lines. Nothing but newline.
git-svn-id: https://develop.svn.wordpress.org/trunk@5700 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-14 02:25:30 +00:00
Ryan Boren
09f70467e0 Admin includes reorg. see #4334
git-svn-id: https://develop.svn.wordpress.org/trunk@5542 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-25 07:16:21 +00:00