Active Topics

 



Notices


Reply
Thread Tools
Posts: 77 | Thanked: 181 times | Joined on Nov 2009 @ Winchester, UK
#1
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?
 

The Following 5 Users Say Thank You to jonquark For This Useful Post:
Posts: 159 | Thanked: 27 times | Joined on Sep 2009 @ Toronto
#2
how about making flickr intergration like share online on Symbian

view your photos, comment on your contacts photos, watching recent avtivity and all????
__________________
Habib Q
http://www.flickr.com/photos/evil_m0nkey/
http://habibqureshi.tumblr.com/

Everytime you don't click on my blog, I kill a kitten
 
Posts: 77 | Thanked: 181 times | Joined on Nov 2009 @ Winchester, UK
#3
Originally Posted by evil_m0nkey View Post
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's Avatar
Posts: 696 | Thanked: 1,012 times | Joined on Mar 2006 @ Asturies, Spain
#4
@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.
__________________
Daniel Martín Yerga
maemo.org profile
Twitter
 

The Following User Says Thank You to yerga For This Useful Post:
Posts: 77 | Thanked: 181 times | Joined on Nov 2009 @ Winchester, UK
#5
@yerga: Thanks for taking the time to look at it
 
Reply


 
Forum Jump


All times are GMT. The time now is 10:36.