Nicolas Juen
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Image Sizes] [Plugin: Simple Image Sizes] Crop from topHi,
If you want to crop form a special position, then use wpThumb plugin for this : Wp Thumb
Regards,
RaheHi,
This feature is kind of tricky, it will be patched o nthe next version :).
Regards,
RaheForum: Plugins
In reply to: [Simple Image Sizes] [Plugin: Simple Image Sizes] This file already existsMarked as resolved 🙂
Exactly, your theme have to call your custom image size to display it. In the admin the image displayed is just an example of the image.
Forum: Plugins
In reply to: [Simple Image Sizes] Wrong image sizes generatedHi,
Maybe the image you have just uploaded is not minmum 585px wide, so WordPress get the max size it can make.
Add a maximum height like 99999 if you want to have unlimited height.
Hi,
You can get the olders versions here :
http://wordpress.org/extend/plugins/simple-responsive-images/developers/I will make a patch for the 3.5 :).
Rahe
Forum: Plugins
In reply to: [Hammy] [Plugin: Hammy] Images sizesHi,
Your last message was like saying that WPThumb is based on TimThumb, my bad ;).
This solution could replace the WordPress core functionnality with hooks and filters, maybe there is a solution here.Sorry for the misunderstanding ;).
Rahe
Forum: Plugins
In reply to: [Hammy] [Plugin: Hammy] Images sizesHi,
I am agree with the fact of the WordPress API is limited, but there is no garentee that WP_Thumb will continue to work in further WordPress updates :/.
The image API will be, one day maybe, updated but for the moment you do not change your breakpoints, image sizes at any time in your website, the sizes are made on the conception of the website so you do not regenerate the images at any time. Plus the timthumb solution have opened security breaches on many websites and themes. It’s safer to use the WordPress API, even is it is not complete.
The ultimate solution is to not generate the sizes when uploading an image but when you need it, so the ressources are preserved and the disk space. The plugin http://wordpress.org/extend/plugins/dynamic-image-resizer/ try to make this but there is a bug and the images are not quitely generated…I hope there will be a real update on this point, especially because of the reponsive problem and the retina etc.
🙂
Rahe
No problem 🙂
Hi,
If you want to get the available sizes of an image programmatically, you have to get the meta_key_wp_attachment_metadataof an media, then it’s an formal array with the data stored in it.If you use a plugin like advanced custom field, you can add an upload image meta wich is returning to you an attachment id, so you can use it with
wp_get_attachment_image_src(). You can use the wp_alchemy class if you feel comfortable with programmation and wanted to have an advanced metaboxes, there is an class for the media upload.
For the post_content it’s tricky to get the attchment id from it url.From the post content ?
When you download an image on you WordPress, WP generate all the sizes you have setted, so if the image is big enough you can have unlimited sizes. So you can call
get_post_thumbnail('my-funky-image-size1')andget_post_thumbnail('my-funky-image-size2')in the loop. The function will use the image setted as featured image.
If you have the attachment id you can callwp_get_attachment_image_src()with the id and the sizes you wanted and display them.Hi,
The theme have to call the right featured image size in the code. So you have to call the right size in the ‘the_post_thumbnail’ function. If the image is not at the right size, try to regenate it.
The removal of he option is not a problem, i handle de emptiness of the value.