Articles of images

WordPress function when file is uploaded, deleted or edited

I need to call this bit of PHP when a file is uploaded, deleted or edited. $output = shell_exec(“bash ./upload.sh”); echo $output; I can’t seem to find the right code to execute this when any of the above happen. Examples and help would be greatly appreciated.

Get the url of the full sized attachment image using post ID?

I have this function: function get_image_link( &$post ) { $image_link_meta = get_post_meta( $post->ID, ‘as_link_to_image’, true ); $image_link_from_post = ”; if ( function_exists( ‘has_post_thumbnail’ ) && has_post_thumbnail( $post->ID ) ) { $attachment_image_link = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), full ); } if ( $attachment_image_link[0] ) $image_link_from_post = $attachment_image_link[0]; if( !empty( $image_link_meta ) ) $final_image_link = $image_link_meta; elseif( […]

Plugin to hide image in excerpt

I was looking for a plugin that will enable me to hide an image on the excerpt, but show it on the single post view. Anyone knows if there is any?

Store in media library image uploaded from url

Is there a plugin that when upload from url/web, it will also give an option to store the images locally and/or into the media library?

How can i link a custom post type thumbnail to intermediate size

I’m trying to build a picture gallery with custom post type in my theme and I think i figure it out almost everything but the call in the template, I already have the custom post type in the functions.php, I have a Page with a custom call to the post type and it’s working (the […]

Thumbnail Image to go in the post aswell

I have looked everywhere but I cant see any clear answers, a lot about getting a thumbnail image. But I am after having the thumbnail which was uploaded to the post to also be in the post just made. So it automatically puts the image in the post (top left corner for example) Thank you

How to get the image-URL from Media-Upload in a post?

I generated a new MetaBox for all standard posts in WordPress 3.1. There I generate a input:text field with the ID _meta_fotos[pic], which should hould the image url generated by the standard media-uploader. I want to use the standard media-uploader from the standard post window. So I generated the following JavaScript code. jQuery(document).ready(function() { jQuery(‘#_meta_fotos\\[pic\\]’).focusin(function() […]

Displaying page image in the footer automatically

I’ve got the following problem: each page of the site has its own image which needs to be placed within the footer div for correct, static placement. However each image is different so I can’t just add a simple IMG tag to the footer. At the moment I’ve stripped the page.php of most of the […]

Image resizing – TimThumb vs convert on upload?

I’m using jQuery Supersized to display a full screen background slideshow on my blog, and I’m using mobile detection to serve a smaller version of the images to mobile devices so it will load faster. Which option do you think would be better? Use TimThumb to dynamically resize the image size and jpeg quality On […]

Using Jetpack carousel w/o creating a gallery

I want to use the Jetpack Carousel for all my posts without editing all of them. Is there a way to show pictures in the carousel even if they’re not in a gallery?