Presenting: QuickImg - easily add completely new images

707 views
Skip to first unread message

Mat

unread,
Mar 14, 2017, 3:13:48 AM3/14/17
to TiddlyWiki
The TWaddler proudly presents:

QuickImg   ....a BETA release (...yeah, it seems to be the only greek letter I know)


QuickImg ("quick image") is an addon to the editor toolbar Picture tool.

It lets you - in tiddler edit mode - easily add completely new images.

"Completely" refers to that you "pick" the image from a web search presented in your TW.

The images are added as "_canonical_uri tiddlers" so you can generously add many images without noticeably increasing the TW file size/load time.

<:-)

HC Haase

unread,
Mar 14, 2017, 5:51:42 AM3/14/17
to TiddlyWiki
cool. very clean fast and efficient.
a nice feature could be the option to search local images from hd.

Jan Johannpeter

unread,
Mar 14, 2017, 6:30:23 AM3/14/17
to TiddlyWiki
Great Plugin Mat...and a great Idea Mr. Haase. I think this would need some modification in browse widget which does not allow any operations of that kind. So far it is even not possible to copy filename it shows. It would be great of someone made a mod that writes filename and path to Fields of a temporary Tiddler, that can then be adressed by other macros...

Greetings Jan
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/bff49dca-83c9-41a1-bcd4-811dc51aaa8c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

HC Haase

unread,
Mar 14, 2017, 11:12:26 AM3/14/17
to TiddlyWiki
and may I give another sugestion.

make a markdown version too. you could reuse most, an just make a markdown image link to put in the textfield instead of a wikitext image link.

like
![picture alt text](nameOfImageTiddler "Title is optional")


Mat

unread,
Mar 14, 2017, 12:30:26 PM3/14/17
to TiddlyWiki
Thanks HC and Jan


a nice feature could be the option to search local images from hd.

What does "hd" mean? Is the listing of the local images inside the Picture tool not enough?



![picture alt text](nameOfImageTiddler "Title is optional")

An idea would be some settings interface to choose a template for the stamped wikitext. I'll consider it.

<:-)

Mark S.

unread,
Mar 14, 2017, 5:13:10 PM3/14/17
to TiddlyWiki
Pretty sure HD is hard drive.

Would be sensational if there were a way to pull in an image from the web, save it locally, and connect to it with a tiddler. That would finally make TW a contender with evernote.

Nice work!
Mark

Mat

unread,
Mar 15, 2017, 3:44:28 AM3/15/17
to TiddlyWiki
On Tuesday, March 14, 2017 at 10:13:10 PM UTC+1, Mark S. wrote:
Pretty sure HD is hard drive.

Ah, of course.

 
Would be sensational if there were a way to pull in an image from the web, save it locally, and connect to it with a tiddler. That would finally make TW a contender with evernote.

There is http://tiddlywiki.com/#Alice%20in%20Wonderland
see http://tiddlywiki.com/#Release%205.1.10 under External Text Tiddlers.

It was a while ago that I experimented with this so can't remember how it works/performs exactly. But, yes, if this was fully featured we'd really have something powerful.

<:-)

Mat

unread,
Mar 15, 2017, 3:49:22 AM3/15/17
to tiddl...@googlegroups.com
Quick test shows it DOES work.

Image in same file as local TW and then




For full path, if img stored elsewhere, example:

file:///C:/Users/M/Downloads/mylocalimg.jpg


<:-)
Auto Generated Inline Image 1

Jon

unread,
Mar 15, 2017, 6:12:19 AM3/15/17
to TiddlyWiki
Ooh Excellent!
I've been waiting for this.
Can't wait to try it out tonight.

Regards
Jon

Jed Carty

unread,
Mar 15, 2017, 6:39:47 AM3/15/17
to TiddlyWiki
This is a bit off topic but I had never seen the external text options! I am not sure how I missed that, I think that it could be very useful for my work on TiddlyLivre.

Mark S.

unread,
Mar 15, 2017, 10:48:32 AM3/15/17
to TiddlyWiki
But the image picker doesn't work with the local  images, does it?  I was already aware that _canonical_uri works with local images. But it's almost better to use a system of macros, so that you can change the base address depending on context (from platform to platform the relative location may have to change). For instance, AndTidWiki forces you to use the internal memory card where memory is precious. The solution is to put other resources like images on a separate card.

Is there a way to scroll through the images? On mine, there is no scroll bar for the images, so you can only pick from the first page of images.

Thanks!
Mark

Mark S.

unread,
Mar 15, 2017, 10:55:30 AM3/15/17
to TiddlyWiki
As I've mentioned before, it never works for me locally. I get:


Alice in wonderland


MAS
 15th March 2017 at 7:51am

Loading external text from ./Alice_in_Wonderland.tid

If this message doesn't disappear you may be using a browser that doesn't support external text in this configuration. See http://tiddlywiki.com/#ExternalText



So, I click through to see what ExternalText tells me and ... it's empty. So what to do?

Thanks!
Mark

Jeremy Ruston

unread,
Mar 15, 2017, 11:17:56 AM3/15/17
to tiddl...@googlegroups.com
Hi Mark

On 15 Mar 2017, at 14:55, 'Mark S.' via TiddlyWiki <tiddl...@googlegroups.com> wrote:


So, I click through to see what ExternalText tells me and ... it's empty. So what to do?

As the text implies, it is down to browser differences. TiddlyWiki tries to retrieve the external text using XMLHttpRequest(), which doesn’t work from HTML files loaded from a file:// URI. On my machine, only Firefox loads the example text when viewed over file://.

Best wishes

Jeremy.

Mark S.

unread,
Mar 15, 2017, 1:48:53 PM3/15/17
to TiddlyWiki
But I'm using Firefox! (FF47.0.1, Win 7) The text adds the phrase: "In this configuration" suggesting that there is some way to configure your browser to make it work. Perhaps that phrase should be dropped? Perhaps it should also not point a person to a tiddler that doesn't exist and that could only tell the user that it doesn't work in some browsers? It's a bit of a teaser the way it is now.

Thanks!
Mark

FF 47.0.1, Win 7

Jeremy Ruston

unread,
Mar 15, 2017, 2:21:00 PM3/15/17
to tiddl...@googlegroups.com
Hi Mark

But I'm using Firefox! (FF47.0.1, Win 7)

Have you downloaded both the TW HTML file and the .tid file? It is referenced via a local URL:

./text/Alice%2520in%2520Wonderland.tid

The text adds the phrase: "In this configuration" suggesting that there is some way to configure your browser to make it work.

Yes, it’s unclear; the configuration it is referring to is http:// vs. file://

Perhaps that phrase should be dropped? Perhaps it should also not point a person to a tiddler that doesn't exist and that could only tell the user that it doesn't work in some browsers? It's a bit of a teaser the way it is now.

Perhaps so! Contributions welcome :)

Best wishes

Jeremy




Thanks!
Mark

FF 47.0.1, Win 7

On Wednesday, March 15, 2017 at 8:17:56 AM UTC-7, Jeremy Ruston wrote:
Hi Mark

On 15 Mar 2017, at 14:55, 'Mark S.' via TiddlyWiki <tiddl...@googlegroups.com> wrote:


So, I click through to see what ExternalText tells me and ... it's empty. So what to do?

As the text implies, it is down to browser differences. TiddlyWiki tries to retrieve the external text using XMLHttpRequest(), which doesn’t work from HTML files loaded from a file:// URI. On my machine, only Firefox loads the example text when viewed over file://.

Best wishes

Jeremy.

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Xavier Cazin

unread,
Mar 15, 2017, 4:29:32 PM3/15/17
to tiddl...@googlegroups.com
Hi Mark, Jeremy,

I was just issuing a pull request for other clarifications regarding External content/text. So I added a commit to reflect your discussion about what wiki configuration means in this context: https://github.com/Jermolene/TiddlyWiki5/pull/2803/commits/aedb096d780e1c02d6cc626cadfebd197c2d157b. Let me know if I should correct it further.

Best,
--Xavier.

-- Xavier Cazin

On Wed, Mar 15, 2017 at 7:20 PM, Jeremy Ruston <jeremy...@gmail.com> wrote:
Hi Mark

But I'm using Firefox! (FF47.0.1, Win 7)

Have you downloaded both the TW HTML file and the .tid file? It is referenced via a local URL:

./text/Alice%2520in%2520Wonderland.tid

The text adds the phrase: "In this configuration" suggesting that there is some way to configure your browser to make it work.

Yes, it’s unclear; the configuration it is referring to is http:// vs. file://

Perhaps that phrase should be dropped? Perhaps it should also not point a person to a tiddler that doesn't exist and that could only tell the user that it doesn't work in some browsers? It's a bit of a teaser the way it is now.

Perhaps so! Contributions welcome :)

Best wishes

Jeremy




Thanks!
Mark

FF 47.0.1, Win 7

On Wednesday, March 15, 2017 at 8:17:56 AM UTC-7, Jeremy Ruston wrote:
Hi Mark

On 15 Mar 2017, at 14:55, 'Mark S.' via TiddlyWiki <tiddl...@googlegroups.com> wrote:


So, I click through to see what ExternalText tells me and ... it's empty. So what to do?

As the text implies, it is down to browser differences. TiddlyWiki tries to retrieve the external text using XMLHttpRequest(), which doesn’t work from HTML files loaded from a file:// URI. On my machine, only Firefox loads the example text when viewed over file://.

Best wishes

Jeremy.

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscribe@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Mat

unread,
Mar 15, 2017, 7:43:32 PM3/15/17
to tiddl...@googlegroups.com
Mark S. wrote:
But the image picker doesn't work with the local  images, does it? 

Here's a test that indicates that it would work, unless I misunderstand you.
This example assumes have local images in same folder as your TW and that you have corresponding tiddlers for them with _canonical_uri : ./filetitle
(BTW, note that a _canonical_uri image tiddler can apparently have any image type (e.g image/png) regardless of the image files actual type.)

<$list filter="[type[image/png]has[_canonical_uri]]" variable="xx">
  <$list filter="[
<xx>get[_canonical_uri]prefix[./]]">
   
<button style="width:60px;">
      <$transclude tiddler=<
<xx>>/>
     
<!--more actions-->
   
</button>
  </$list>
</$list>

 
Is there a way to scroll through the images? On mine, there is no scroll bar for the images, so you can only pick from the first page of images.

Yeah, assuming you're referring to the search results. I've actually covered the top with an absolute(ly) positioned div and it covers the scroll handle when the search result is short  or perhaps depending on screen settings. I'll do something about this in a later release but you should be able to click on the (not easily seen) scrollbar anyway.


<:-)

Mark S.

unread,
Mar 15, 2017, 9:08:36 PM3/15/17
to TiddlyWiki
Good initiative, Xavier! Why not leave off the link to ExternalText, since there is no corresponding tiddler? Then if there ever is something additional to write, it can be put back in.

-- Mark

-- Xavier Cazin

Jeremy



To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Mark S.

unread,
Mar 15, 2017, 9:10:41 PM3/15/17
to TiddlyWiki
Hi Mat,

I didn't mean hypothetically ... I meant is there a way to currently use the image browser to look at the local directory.

Thanks!
Mark

Mark S.

unread,
Mar 15, 2017, 9:14:54 PM3/15/17
to TiddlyWiki
Hi Jeremy,

Yes I downloaded both a TW and the text file. I changed the name in the text file to eliminate complications due to spaces. I tried a variety of naming schemes. I also tried changing the extension to txt in case the system was confused by '.tid'.

The thing is, canonical uri works fine with local images. Is the handling of images different than that for the text file?

Thanks!
Mark
Reply all
Reply to author
Forward
0 new messages