For a start, when you insert images, you need to choose “Align: left” rather than Align: None”. Then try adding the following to the bottom of style.css:
.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}
.alignleft {
float: left;
}
.alignright {
float: right;
}
Hi,
Open wp-admin/inline-uploading.php
Find:
if ( $imagedata['width'] > 128 &&
$imagedata['width'] >= $imagedata['height'] * 4 / 3 )
$thumb = wp_create_thumbnail($file, 128);
elseif ( $imagedata['height'] > 96 )
$thumb = wp_create_thumbnail($file, 96);
Replace with your desired height width. I have doubt it in this code:
if ( $imagedata['width'] > 256 &&
$imagedata['width'] >= $imagedata['height'] * 4 / 3 )
$thumb = wp_create_thumbnail($file, 256);
elseif ( $imagedata['height'] > 192 )
$thumb = wp_create_thumbnail($file, 192);
Thanks,
Shane G.
Thread Starter
hawt
(@hawt)
esmi,
It worked! Thanks for your help with this.
Matt
Thread Starter
hawt
(@hawt)
Hi Shane G.
Could you tell me what I would accomplish by changing the wp-admin/inline-uploading.php code? Will this automatically create a specific size thumbnail?
Thanks,
Matt
The hack that Shane posted will (I think) double your thumbnail image sizes but hacking the WordPress core isn’t something I’d recommend. For a start, you’d lose these changes the next time you upgraded WordPress.
Do you actually have a problem with image sizes?
Thread Starter
hawt
(@hawt)
Hi Esmi,
I don’t have a problem with image sizes. I’ll leave the WordPress core alone. Thanks for the advice.
Matt