Image upload / GDLib / WordPress hooks
Ok so I have a bit of an odd situation that I need help with. What I am trying to do with my custom plugin is have images that are uploaded for a custom post be stored in a special directory – which I have accomplished using the wp_handle_upload(). The thing is I also needed to have a new custom image size for the specific post type – which again I accomplished using add_image_size(). So far all of this is working perfectly. My next step has me stumped though…
I need to run a bunch of GDlib processing on JUST the new image size I have created and named using the WordPress hooks. For sake of discussion I used add_image_size(‘google-marker’,100,100, false);
Now I dont want to change anything about the other files WordPress creates based on the media settings. I just want to change ‘google-marker’ to have a border and a little arrow pointer (which I know how to do in GDlib already)… I just dont know how to hook into wordpress to intercept the default image resizing and create my own.
Any pointers, help, links for things similer etc are all much appreciated.
- The topic ‘Image upload / GDLib / WordPress hooks’ is closed to new replies.