maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Proposed Improvement to MaStory blogging client (https://talk.maemo.org/showthread.php?t=46658)

jonquark 2010-03-06 18:03

Proposed Improvement to MaStory blogging client
 
After playing with MaStory, I really like it but when you use it to embed photos in Wordpress, visitors to the blog have to download a large resolution file.

Given Wordpress automatically creates smaller versions of uploaded photos, I'd rather the blog post included a smaller version which was a link to the full resolution version. (Wordpress currently does not create thumbnails for files uploaded from MaStory as MaStory doesn't report the mimetype for the image).

After a bit of investigation, I decided this wasn't possible without changes to Wordpress as well as MaStory.

So I've:
The way the patch works for MaStory, is that a select box is added to the bottom-right corner of the "HTML tags" window of the upload image dialog. From that select box, you choose: full size, thumbnail, medium or large. Full size gives you the current behaviour. If you choose a different size, instead of the plain img tag, something like this is inserted:

<a href="file:///home/user/MyDocs/DCIM/example.jpg"><img src="file(medium):///home/user/MyDocs/DCIM/example.jpg" /></a>

When the upload happens, assuming that the plugin is installed on the Wordpress blog, the file:// url is replaced by the full image and the file(medium):// tag is replaced by the medium scaled image.

There are a few things I want to discuss about this approach (hopefully Daniel Yerga will read this thread but other opinions from users/developers of MaStory are welcomed):

1) Are we happy extending MaStory in ways that only work if a plugin is installed in Wordpress (or some far future version of WP is used). (If the plugin isn't installed and the user tries to use this functionality, the image included in the post will be the full size image and it will link to the same image).

2) Is the bottom right corner of the "HTML tags" bit of the upload image the "right" place for the UI?

3) Most of the image options reset for each new image. I'll like this setting to persist indefinitely, presumably by adding an option to mastory.conf. Do people agree?

4) Is file(<size>):// urls the right way of denoting the resized images?

5) Anyone have other thoughts?

evil_m0nkey 2010-03-06 18:53

Re: Proposed Improvement to MaStory blogging client
 
how about making flickr intergration like share online on Symbian

view your photos, comment on your contacts photos, watching recent avtivity and all????

jonquark 2010-03-07 08:03

Re: Proposed Improvement to MaStory blogging client
 
Quote:

Originally Posted by evil_m0nkey (Post 558058)
how about making flickr intergration like share online on Symbian. view your photos, comment on your contacts photos, watching recent avtivity and all????

For the moment I only really use MaStory as a Wordpress client, not for Flickr so I'm unlikely to work on this any time soon.

yerga 2010-03-10 18:02

Re: Proposed Improvement to MaStory blogging client
 
@jonquark

I haven't had the time to check it in depth yet, but thank you very much for the improvement. Definitely, the idea is good.

The only issue that I see a priori is the confusion that the users could have if they don't have the plugin installed. But a notice to clarify things could be sufficient.

Anyway, let me some time to check it in depth.

jonquark 2010-03-10 20:21

Re: Proposed Improvement to MaStory blogging client
 
@yerga: Thanks for taking the time to look at it


All times are GMT. The time now is 23:24.

vBulletin® Version 3.8.8