jim_m
Forum Replies Created
-
Forum: Plugins
In reply to: NextGen Gallery not working on WP 2.8.4Still no solution from anyone?
I did figure out one workaround, that if I click one of the tabs in Add Gallery/Image, and then do a reload of the page it does work. Usable for now, but not ideal.
Forum: Fixing WordPress
In reply to: Changing Thumbnail SizeI came across another a problem with this solution. See:
Forum: Fixing WordPress
In reply to: Defining Thumbnail size on uploadI came across another problem which might be the reason sjusc10’s solution isn’t working. Have a look at this thread:
Forum: Fixing WordPress
In reply to: Change default thumbnail size in WP2.0Yes, the original thumbnails were 128×96 (or 96×128), I just doubled it to 256×192. This seems to work fine for me using firefox.
However using Internet Exporer I still get small images. Under IE, the code that strips the extra size tags from the image when it gets sent to the editor seems to miss the height tag. (you can see this if you click on the HTML button in the editor, every thumbnail will have a height=128 tag) This seems to stem from the line 426 in
h = h.replace(new RegExp(' (class|title|width|height|id|onclick|onmousedown)=([^\'"][^ ]*)( |/|>)', 'g'), ' $1="$2"$3'); // Enclose
attribs in quotes
Which doesn’t quote the attributes. Changing it to this:
h = h.replace(new RegExp('(class|title|width|height|id|onclick|onmousedown)=([^\'"][^ />]*)', 'g'), '$1="$2"');
Seemed to make it work.
Forum: Fixing WordPress
In reply to: Change default thumbnail size in WP2.0This seems to be hardcoded in the source. If you want to hack it I changed the file wp-admin/inline-uploading.php at line 84 to:
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);
This leaves the thumbnails in the editor upload window small, but when you “send it to editor” they are twice as big. I haven’t tested this much, but so far seems to work ok.