[tw5] Re: auto embed images from local folder into tiddler
@Mark S. thanks for the quick response. Everything working well, sets tiddler type as expected. My problem seemed to be with the image file I was using. I tried it on different drives and it still wouldn't work. Changed the image and all went smoothly. Thanks again Mark Regards Scot On Thursday, 11 June 2020 22:23:21 UTC+1, Mark S. wrote: > > @scot > > You're right -- I left out the image type. Here's a version that let's you > select from 3 different image types. Be sure to make an initial selection. > Unfortunately, defaults in TW don't actually initialize fields and tiddlers > until you make a choice from the menu. > > Thanks! > > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/a91fb619-4ad8-45a1-a479-3fc83fc44135o%40googlegroups.com.
[tw5] Re: auto embed images from local folder into tiddler
Hi Mark S. I have tried to create an image tiddler but it does not show the image, just an error message. The image tiddler does not have a type, not sure whether that matters. I have put a wiki on tiddlyspot - hope this helps explain what I am doing wrong. http://scotwiki.tiddlyspot.com/ regards, Scot On Thursday, 11 June 2020 17:55:36 UTC+1, Mark S. wrote: > > Just tested. Works fine. You'll need to explain more about what you > actually did. In this version you use an ordinary tiddler where you list > your image files. You type the name of the tiddler with images into the > appropriate field. You type the base path that you want into the next > field, and include a trailing slash. You push the button. The image > tiddlers are made silently, so you have to find them in the "recent" tab." > > On Thursday, June 11, 2020 at 3:43:42 AM UTC-7, scot wrote: >> >> Hi Mark S. >> I'm sorry but I can't get your versions to work. >> regards, >> Scot >> >> On Wednesday, 10 June 2020 12:00:59 UTC+1, scot wrote: >>> >>> Hi Mark S. >>> thanks for your quick reply and examples, I'll give them a try. >>> Scot >>> FYI >>> Just after I posted my question, I realised that it was added to TW >>> Scripts. >>> The script had been modified slightly to read from a path and directory >>> but saved the images silently. >>> See >>> https://kookma.github.io/TW-Scripts/#Create%20External%20Images%20from%20A%20Directory >>> >>> >>> On Tuesday, 9 June 2020 16:46:57 UTC+1, Mark S. wrote: Here's a version if you want to try it where you don't need to format as a data dictionary and you can enter your path and the name of your listing tiddler on the fly. BE SURE TO MAKE BACKUPS before attempting! Only lightly tested. Needs 5.1.20 or higher. This version will write over existing tiddlers of the same name, so be mindful of that. Have fun! On Thursday, December 7, 2017 at 12:20:56 PM UTC-8, Péricles Correia wrote: > > > > Hi, > Thanks for this amazing tool, Tiddlywiki is helping me a lot > organizing information! > > > I'm an absolute beginner in Tiddlywiki, I've been adding images > manually and now I would like to automatize this task. > After lot's of research, I couldn't point myself in the right > direction.. > > > Using a standalone installation, my projects look like this: > > ./mainTiddlywiki.html > > ./project_1*/project_1_Tiddlywiki.html* > > ./project_1/*subject_1/images/*image_1.jpg image_2.jpg image_3.jpg > image_4.jpg ... (and so on) ... > > ./project_1/*subject_2/images/*image_1.jpg image_2.jpg image_3.jpg > image_4.jpg ... (and so on) ... > > ... > > > My goal is to create one tiddler (in *project_1_Tiddlywiki.html*), > called *subject_1 images * > > and thru an algorithm would go to the folder */subject_1/images/ * > > displaying all the images that are currently in that folder (and later > do the same to *subject_2*). > > Not having to do this manually: > > [img[my image_1|./subject_1/images/image_1]] > > [img[my image_2|./subject_1/images/image_2]] > > [img[my image_3|./subject_1/images/image_3]] > > I don't wan't to import the images to TW, it would be very fattening. > > Thanks! > > Péricles Correia > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/09539fce-d2ec-487b-9690-79114831a6a9o%40googlegroups.com.
[tw5] Re: auto embed images from local folder into tiddler
Just tested. Works fine. You'll need to explain more about what you actually did. In this version you use an ordinary tiddler where you list your image files. You type the name of the tiddler with images into the appropriate field. You type the base path that you want into the next field, and include a trailing slash. You push the button. The image tiddlers are made silently, so you have to find them in the "recent" tab." On Thursday, June 11, 2020 at 3:43:42 AM UTC-7, scot wrote: > > Hi Mark S. > I'm sorry but I can't get your versions to work. > regards, > Scot > > On Wednesday, 10 June 2020 12:00:59 UTC+1, scot wrote: >> >> Hi Mark S. >> thanks for your quick reply and examples, I'll give them a try. >> Scot >> FYI >> Just after I posted my question, I realised that it was added to TW >> Scripts. >> The script had been modified slightly to read from a path and directory >> but saved the images silently. >> See >> https://kookma.github.io/TW-Scripts/#Create%20External%20Images%20from%20A%20Directory >> >> >> On Tuesday, 9 June 2020 16:46:57 UTC+1, Mark S. wrote: >>> >>> >>> Here's a version if you want to try it where you don't need to format as >>> a data dictionary and you can enter your path and the name of your listing >>> tiddler on the fly. BE SURE TO MAKE BACKUPS before attempting! >>> >>> Only lightly tested. Needs 5.1.20 or higher. >>> >>> This version will write over existing tiddlers of the same name, so be >>> mindful of that. >>> >>> Have fun! >>> >>> >>> On Thursday, December 7, 2017 at 12:20:56 PM UTC-8, Péricles Correia >>> wrote: Hi, Thanks for this amazing tool, Tiddlywiki is helping me a lot organizing information! I'm an absolute beginner in Tiddlywiki, I've been adding images manually and now I would like to automatize this task. After lot's of research, I couldn't point myself in the right direction.. Using a standalone installation, my projects look like this: ./mainTiddlywiki.html ./project_1*/project_1_Tiddlywiki.html* ./project_1/*subject_1/images/*image_1.jpg image_2.jpg image_3.jpg image_4.jpg ... (and so on) ... ./project_1/*subject_2/images/*image_1.jpg image_2.jpg image_3.jpg image_4.jpg ... (and so on) ... ... My goal is to create one tiddler (in *project_1_Tiddlywiki.html*), called *subject_1 images * and thru an algorithm would go to the folder */subject_1/images/ * displaying all the images that are currently in that folder (and later do the same to *subject_2*). Not having to do this manually: [img[my image_1|./subject_1/images/image_1]] [img[my image_2|./subject_1/images/image_2]] [img[my image_3|./subject_1/images/image_3]] I don't wan't to import the images to TW, it would be very fattening. Thanks! Péricles Correia >>> -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/a8b20bf8-8b2f-4f9d-a923-4c454342fb93o%40googlegroups.com.
[tw5] Re: auto embed images from local folder into tiddler
Hi Mark S. I'm sorry but I can't get your versions to work. regards, Scot On Wednesday, 10 June 2020 12:00:59 UTC+1, scot wrote: > > Hi Mark S. > thanks for your quick reply and examples, I'll give them a try. > Scot > FYI > Just after I posted my question, I realised that it was added to TW > Scripts. > The script had been modified slightly to read from a path and directory > but saved the images silently. > See > https://kookma.github.io/TW-Scripts/#Create%20External%20Images%20from%20A%20Directory > > > On Tuesday, 9 June 2020 16:46:57 UTC+1, Mark S. wrote: >> >> >> Here's a version if you want to try it where you don't need to format as >> a data dictionary and you can enter your path and the name of your listing >> tiddler on the fly. BE SURE TO MAKE BACKUPS before attempting! >> >> Only lightly tested. Needs 5.1.20 or higher. >> >> This version will write over existing tiddlers of the same name, so be >> mindful of that. >> >> Have fun! >> >> >> On Thursday, December 7, 2017 at 12:20:56 PM UTC-8, Péricles Correia >> wrote: >>> >>> >>> >>> Hi, >>> Thanks for this amazing tool, Tiddlywiki is helping me a lot organizing >>> information! >>> >>> >>> I'm an absolute beginner in Tiddlywiki, I've been adding images manually >>> and now I would like to automatize this task. >>> After lot's of research, I couldn't point myself in the right direction.. >>> >>> >>> Using a standalone installation, my projects look like this: >>> >>> ./mainTiddlywiki.html >>> >>> ./project_1*/project_1_Tiddlywiki.html* >>> >>> ./project_1/*subject_1/images/*image_1.jpg image_2.jpg image_3.jpg >>> image_4.jpg ... (and so on) ... >>> >>> ./project_1/*subject_2/images/*image_1.jpg image_2.jpg image_3.jpg >>> image_4.jpg ... (and so on) ... >>> >>> ... >>> >>> >>> My goal is to create one tiddler (in *project_1_Tiddlywiki.html*), >>> called *subject_1 images * >>> >>> and thru an algorithm would go to the folder */subject_1/images/ * >>> >>> displaying all the images that are currently in that folder (and later >>> do the same to *subject_2*). >>> >>> Not having to do this manually: >>> >>> [img[my image_1|./subject_1/images/image_1]] >>> >>> [img[my image_2|./subject_1/images/image_2]] >>> >>> [img[my image_3|./subject_1/images/image_3]] >>> >>> I don't wan't to import the images to TW, it would be very fattening. >>> >>> Thanks! >>> >>> Péricles Correia >>> >> -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/14187cc7-0aa4-4d82-80d6-7398ea4e6d0co%40googlegroups.com.
[tw5] Re: auto embed images from local folder into tiddler
Hi Mark S. thanks for your quick reply and examples, I'll give them a try. Scot FYI Just after I posted my question, I realised that it was added to TW Scripts. The script had been modified slightly to read from a path and directory but saved the images silently. See https://kookma.github.io/TW-Scripts/#Create%20External%20Images%20from%20A%20Directory On Tuesday, 9 June 2020 16:46:57 UTC+1, Mark S. wrote: > > > Here's a version if you want to try it where you don't need to format as a > data dictionary and you can enter your path and the name of your listing > tiddler on the fly. BE SURE TO MAKE BACKUPS before attempting! > > Only lightly tested. Needs 5.1.20 or higher. > > This version will write over existing tiddlers of the same name, so be > mindful of that. > > Have fun! > > > On Thursday, December 7, 2017 at 12:20:56 PM UTC-8, Péricles Correia wrote: >> >> >> >> Hi, >> Thanks for this amazing tool, Tiddlywiki is helping me a lot organizing >> information! >> >> >> I'm an absolute beginner in Tiddlywiki, I've been adding images manually >> and now I would like to automatize this task. >> After lot's of research, I couldn't point myself in the right direction.. >> >> >> Using a standalone installation, my projects look like this: >> >> ./mainTiddlywiki.html >> >> ./project_1*/project_1_Tiddlywiki.html* >> >> ./project_1/*subject_1/images/*image_1.jpg image_2.jpg image_3.jpg >> image_4.jpg ... (and so on) ... >> >> ./project_1/*subject_2/images/*image_1.jpg image_2.jpg image_3.jpg >> image_4.jpg ... (and so on) ... >> >> ... >> >> >> My goal is to create one tiddler (in *project_1_Tiddlywiki.html*), >> called *subject_1 images * >> >> and thru an algorithm would go to the folder */subject_1/images/ * >> >> displaying all the images that are currently in that folder (and later do >> the same to *subject_2*). >> >> Not having to do this manually: >> >> [img[my image_1|./subject_1/images/image_1]] >> >> [img[my image_2|./subject_1/images/image_2]] >> >> [img[my image_3|./subject_1/images/image_3]] >> >> I don't wan't to import the images to TW, it would be very fattening. >> >> Thanks! >> >> Péricles Correia >> > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/dee8a899-8410-4815-8ee1-16497221e8c5o%40googlegroups.com.
[tw5] Re: auto embed images from local folder into tiddler
Here's a version if you want to try it where you don't need to format as a data dictionary and you can enter your path and the name of your listing tiddler on the fly. BE SURE TO MAKE BACKUPS before attempting! Only lightly tested. Needs 5.1.20 or higher. This version will write over existing tiddlers of the same name, so be mindful of that. Have fun! On Thursday, December 7, 2017 at 12:20:56 PM UTC-8, Péricles Correia wrote: > > > > Hi, > Thanks for this amazing tool, Tiddlywiki is helping me a lot organizing > information! > > > I'm an absolute beginner in Tiddlywiki, I've been adding images manually > and now I would like to automatize this task. > After lot's of research, I couldn't point myself in the right direction.. > > > Using a standalone installation, my projects look like this: > > ./mainTiddlywiki.html > > ./project_1*/project_1_Tiddlywiki.html* > > ./project_1/*subject_1/images/*image_1.jpg image_2.jpg image_3.jpg > image_4.jpg ... (and so on) ... > > ./project_1/*subject_2/images/*image_1.jpg image_2.jpg image_3.jpg > image_4.jpg ... (and so on) ... > > ... > > > My goal is to create one tiddler (in *project_1_Tiddlywiki.html*), called > *subject_1 > images * > > and thru an algorithm would go to the folder */subject_1/images/ * > > displaying all the images that are currently in that folder (and later do > the same to *subject_2*). > > Not having to do this manually: > > [img[my image_1|./subject_1/images/image_1]] > > [img[my image_2|./subject_1/images/image_2]] > > [img[my image_3|./subject_1/images/image_3]] > > I don't wan't to import the images to TW, it would be very fattening. > > Thanks! > > Péricles Correia > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/79571137-7b70-4d9f-9a2a-2ca9ec21caf5o%40googlegroups.com. tw-make-image-list-into-canonical-uri-tiddlers.json Description: application/json
[tw5] Re: auto embed images from local folder into tiddler
Wow. 2017. Where does the time go? Who is this guy "mark", and why should I know him? This version below of the Make Images tiddler should create your tiddlers silently. BUT, you absolutely need to be sure that the tiddler with the photo name doesn't already exist, or it will write over it! It should also be possible to write a version now that doesn't need you to put the files in a data dictionary. The "new" splitregexp operator will allow us to parse up the contents of a regular tiddler without needing that "X" on the end. Meanwhile, HTH \define uri() pictures-sortus/$(currentTiddler)$ <$button>Make images <$list filter="[[GalleryList]indexes[]]"> <$action-setfield title=<> _canonical_uri=<>/> <> On Tuesday, June 9, 2020 at 7:59:33 AM UTC-7, scot wrote: > > Hello Mark S. > I have been using your GalleryList data dictionary, mentioned below, to > create tiddlers for lots of my images and it works very well. > You mention " > *Lot's of room for improvement, of course. Like a form for putting in the > directory name. Or maybe not having all the images open as draft.*" > > My question is, how can I have all the images created, saved and closed > rather than open as draft. > Can you offer any help, please. > > Scot > > > On Friday, 8 December 2017 17:42:23 UTC, Mark S. wrote: >> >> This is a simple technique when you have a lot of image files that you >> want to add as _canonical_uri If you were hoping to add lot's of files >> *physically* into the TW, be aware that this is inadvisable because images >> will rapidly bloat the size of your TW file. >> >> You load the names of the files you want into the GalleryList data >> dictionary. Entry is the name of the image followed by a colon, space, and >> "X" (or anything you want). e.g. >> >> 197810_01_EGYPT_Camels.jpg: X >> >> There are various ways to grab a listing. I use FreeCommander to grab the >> listing and then use Emacs to put the ": X" on the end. >> >> The "Make Images" button can be clicked to make the canonical uri. Before >> doing that, you may want to modify the macro at the >> top to point to your directory. In this case: >> >> \define uri() pictures-sortus/$(currentTiddler)$ >> >> You will want to have pictures-sortus pointing to your own sub-directory. >> >> Lot's of room for improvement, of course. Like a form for putting in the >> directory name. Or maybe not having all the images >> open as draft. >> >> Have fun, >> Mark >> >> >> On Thursday, December 7, 2017 at 12:20:56 PM UTC-8, Péricles Correia >> wrote: >>> >>> Hi, >>> Thanks for this amazing tool, Tiddlywiki is helping me a lot organizing >>> information! >>> >>> >>> I'm an absolute beginner in Tiddlywiki, I've been adding images manually >>> and now I would like to automatize this task. >>> After lot's of research, I couldn't point myself in the right direction.. >>> >>> >>> Using a standalone installation, my projects look like this: >>> >>> mainTiddlywiki.html >>> >>>- subject_1/subject_1_Tiddlywiki.html >>>- subject_1/images/ >>>- subject_1/images/image_1.jpg >>>- subject_1/images/image_2.jpg >>>- subject_1/images/image_3.jpg >>>- ... >>> >>> My goal is to create one tiddler (in *subject_1_Tiddlywiki.html*), that >>> embeds all pictures that are currently inside the *images *folder. >>> >>> >>> >>> Thanks! >>> >>> Péricles Correia >>> >>> >>> -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/c59f1e2e-6294-4853-bc18-9f9ed53cd1c6o%40googlegroups.com.
[tw5] Re: auto embed images from local folder into tiddler
Hello Mark S. I have been using your GalleryList data dictionary, mentioned below, to create tiddlers for lots of my images and it works very well. You mention " *Lot's of room for improvement, of course. Like a form for putting in the directory name. Or maybe not having all the images open as draft.*" My question is, how can I have all the images created, saved and closed rather than open as draft. Can you offer any help, please. Scot On Friday, 8 December 2017 17:42:23 UTC, Mark S. wrote: > > This is a simple technique when you have a lot of image files that you > want to add as _canonical_uri If you were hoping to add lot's of files > *physically* into the TW, be aware that this is inadvisable because images > will rapidly bloat the size of your TW file. > > You load the names of the files you want into the GalleryList data > dictionary. Entry is the name of the image followed by a colon, space, and > "X" (or anything you want). e.g. > > 197810_01_EGYPT_Camels.jpg: X > > There are various ways to grab a listing. I use FreeCommander to grab the > listing and then use Emacs to put the ": X" on the end. > > The "Make Images" button can be clicked to make the canonical uri. Before > doing that, you may want to modify the macro at the > top to point to your directory. In this case: > > \define uri() pictures-sortus/$(currentTiddler)$ > > You will want to have pictures-sortus pointing to your own sub-directory. > > Lot's of room for improvement, of course. Like a form for putting in the > directory name. Or maybe not having all the images > open as draft. > > Have fun, > Mark > > > On Thursday, December 7, 2017 at 12:20:56 PM UTC-8, Péricles Correia wrote: >> >> Hi, >> Thanks for this amazing tool, Tiddlywiki is helping me a lot organizing >> information! >> >> >> I'm an absolute beginner in Tiddlywiki, I've been adding images manually >> and now I would like to automatize this task. >> After lot's of research, I couldn't point myself in the right direction.. >> >> >> Using a standalone installation, my projects look like this: >> >> mainTiddlywiki.html >> >>- subject_1/subject_1_Tiddlywiki.html >>- subject_1/images/ >>- subject_1/images/image_1.jpg >>- subject_1/images/image_2.jpg >>- subject_1/images/image_3.jpg >>- ... >> >> My goal is to create one tiddler (in *subject_1_Tiddlywiki.html*), that >> embeds all pictures that are currently inside the *images *folder. >> >> >> >> Thanks! >> >> Péricles Correia >> >> >> -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/bc11d220-abbe-49fb-8032-2bf651241ebfo%40googlegroups.com.