[wp-hackers] Hooks on image upload

Mike Plant msplant at gmail.com
Sun Jan 9 14:13:31 UTC 2011


Hello all,

I have recently joined the list and have been quietly listening. This message is exactly what I joined he list for. Recently while building a plugin I need to crop thumbnails from the top left instead of centering as the core does now. I could not find any way to change this without changing the Wordpress include. 

What are the thoughts on adding a hook to the crop function in media to allow a programmer to change the crop parameters?

Sent from my iPod

On Jan 9, 2011, at 7:00 AM, wp-hackers-request at lists.automattic.com wrote:

> Send wp-hackers mailing list submissions to
>    wp-hackers at lists.automattic.com
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>    http://lists.automattic.com/mailman/listinfo/wp-hackers
> or, via email, send a message with subject or body 'help' to
>    wp-hackers-request at lists.automattic.com
> 
> You can reach the person managing the list at
>    wp-hackers-owner at lists.automattic.com
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of wp-hackers digest..."
> 
> 
> Today's Topics:
> 
>   1. Re: Hooks on image upload (William P. Davis)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Sat, 8 Jan 2011 23:19:10 +0000
> From: "William P. Davis" <will.davis at gmail.com>
> Subject: Re: [wp-hackers] Hooks on image upload
> To: wp-hackers at lists.automattic.com
> Message-ID:
>    <1650673642-1294528751-cardhu_decombobulator_blackberry.rim.net-1373516026- at bda597.bisx.prod.on.blackberry>
>    
> Content-Type: text/plain; charset="Windows-1252"
> 
> Thanks Iain!
> Sent from my BlackBerry? wireless device
> 
> -----Original Message-----
> From: Iain Cambridge <wackiebackie at gmail.com>
> Sender: wp-hackers-bounces at lists.automattic.com
> Date: Sat, 8 Jan 2011 23:17:21 
> To: <wp-hackers at lists.automattic.com>
> Reply-To: wp-hackers at lists.automattic.com
> Subject: Re: [wp-hackers] Hooks on image upload
> 
> I use the "wp_generate_attachment_metadata" filter to handle media uploads.
> 
> Iain
> 
> On Sat, Jan 8, 2011 at 10:55 PM, William P. Davis <will.davis at gmail.com> wrote:
>> I'm creating a little plugin that automatically changes the author
>> field of an image on upload based on the image's metadata, but I can't
>> seem to find a filter or action to hook into. This is actually going
>> to be used with Scott Bressler's Media Credit plugin ? right now the
>> person who uploads the image is automatically set as the author. I've
>> got a function all set to change the author based on the exif data,
>> but, as I said, there doesn't seem to be any actions I can hook into
>> to run the function.
>> 
>> Will
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>> 
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
> 
> ------------------------------
> 
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
> 
> 
> End of wp-hackers Digest, Vol 72, Issue 18
> ******************************************


More information about the wp-hackers mailing list