Andrew Ozz
971e81c326
Fix notice in wp_read_image_metadata() when EXIF ISOSpeedRatings is array, props nacin, fixes #20807
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20978 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-02 01:39:00 +00:00
Ryan Boren
b6e23d7269
Shears of vigorous pinking.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20944 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-27 16:25:43 +00:00
Ryan Boren
c992db3d22
Remove debug cruft. Fix typo. Props SergeyBiryukov. fixes #20657
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20808 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-16 18:11:19 +00:00
Ryan Boren
b36e895a24
Create a new attachment and make a copy of the image when selecting an image from the image library. This prevents orphaning the header if the original attachment is deleted. This also prevents stomping of meta.
...
Add a button to skip cropping.
Props SergeyBiryukov
Fixes #20657 #20667
git-svn-id: https://develop.svn.wordpress.org/trunk@20806 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-16 17:47:55 +00:00
Ryan Boren
cdc9ebd779
Make the file names unique for cropped header images. Props SergeyBiryukov. fixes #20666
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20787 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-14 17:53:03 +00:00
Ryan Boren
71150d164a
Don't convert png to jpg when cropping a header. Prevents stomping transparency. Props SergeyBiryukov, kovshenin. fixes #20555
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20706 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 21:35:56 +00:00
Ryan Boren
1b6cda0c48
Use correct var name. Props mattonomics. fixes #20432
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20454 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-12 21:02:24 +00:00
Ryan Boren
6fde0bddaf
Make choosing a header image from the media library play nicely with file replication plugins that do not guarantee images will be retained in the local filesystem.
...
* When passing an attachment ID to wp_crop_image(), use load_image_to_edit() to fetch the image via a url fopen when the image does not exist in the filesystem.
* Move load_image_to_edit() to wp-admin/includes/image.php so that it is always available for admin pages loads.
* Fallback to the height and width stored in the attachment meta when the image no longer exists in the filesystem.
see #19840
git-svn-id: https://develop.svn.wordpress.org/trunk@20384 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-06 20:47:24 +00:00
Ryan Boren
a8d77cbae9
User lowercase true, false, null instead of uppercase. Props c3mdigital, mfields. fixes #16302
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19687 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-05 20:50:54 +00:00
Ryan Boren
676ba7043e
Use one space, not two, after trailing punctuation. fixes #19537
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19593 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-13 23:45:31 +00:00
Jon Cave
60d321b14b
Fix typos in documentation (wp-admin/). See #18560 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18632 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-03 14:18:10 +00:00
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