November 8th, 2007
Finally a working plugin for moblogging images.

Finally I think I have found the solution for uploading images to Wordpress; Postie. Altough there were tons of work to get it working the way I wanted. Basic adjustments were; the “)”-bug, the cron-workaround, the lack of quality in resizing images, the “uncategorized” update.

1. The “)” bug in the code in postieIMAP.php if-function starting on line 70 shoud be:

if (eregi("google",$server)) {
//Fix from Jim Hodgson http://www.jimhodgson.com/2006/07/19/postie/
$server_string = "{".$server.":".$port.$option."}INBOX";
}

2. The Cron-workaround. You can use plugins or RSS-fixes but since the bottomline of the problem is to trigger “get_mail.php” to fetch the mails from the mailserver. The easiest fix for me was to put a “0″ by “0″ pixels big iFrame in the header of my blog. That iFrame contains the URL that triggers get_mail.php:

iframe src="http://your_domain/wp-content/plugins/postie/get_mail.php?Submit=Run+Postie+%C2%BB" name="mailiframe" width="0" height="0" frameborder="0" scrolling="no" title=""></iframe

3. Most obvious problem was the quality of the resizing. Default resize function uses the “Nearest neigbour” type of scaling when a much better result is achieved with a bicubic-rescaling. Fix for this is to open postie-functions.php and, in the ResizeImageWithGD()-function, replace imagecopyresized() with imagecopyresampled() … that fixes it.

I´m using a Nokia n73 and have downloaded the Resco Photo Viewer, good app for adjusting your images (color, brightness, contrast) before posting them …




Add your comment

Comments are moderated.

XHTML: You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Return to Top

Running a business