As I am an Artsteacher I am sometimes teaching students by copying images.
As well as books wiki serves as a source of images.
Since the task is much easier if you have a grid, I would like to create an overlay that produces a stable grid over an image.
Thank you @saqimtiaz! In StackOverflow, it looks exactly like the thing I want.
But so far I did not get it to work in TW. Could it be the wildcard-selector?
Hi, @buggyj ,This is also beautiful, but I look for a neat trick to adjust the picture to the svg.
I would put the picture into a modal which is displayed in Fullscreen Mode here is my tiddler so far:
Yeah, ability to adjust the grid colour is really handy because sometimes, the grid blends into an image that has colours in close proximity (to the grid colour).
The code to make that grid work is a subset of code I wrote to create a slider-puzzle in TW.
I don’t know how to get the dimensions of an image to maintain perspective as an image is zoomed in/out. If that is possible and somebody can tell me how, then I can easily setup one range widget that works as a “zoom” (to replace the two board Size range widgets.)
Personally, I kind of like the ability to stretch an image horizontally and or vertically. So I might be tempted to add a “maintain aspect” check box. If somebody can tell me how to find out the native dimensions of an image.
In general, having settings stored in a separate tiddler would be good so that one’s preferred settings don’t get snafued when a new version of the “Gridded Picture Viewer” gets dragged into a TW instance.
Is there any other benefit?
To me, another tiddler thrown into the mix, I’m not seeing the “cost”/ “benefit”. Although I’m a huge fan of componentization, it has to hurt more to not componentize for me to componentize. If componentizing hurts more than not componentizing, then I don’t componentize.
If I were to create this as a formal plugin, I’d componentize. I’m just not a fan of creating and maintaining plugins.
Great! I am just trying to achieve this:
Store the temporary data (ImageURL, Scale) in a temporary tiddler,
the config data in (lines, size of squares) in a config tiddler.
I will upload it when it is working.
…with a ViewTemplate conditioned on the tag “GriddedPicture”. And then you can have multiple tiddlers that show the picture at different sizes and grid granularities. (We might have to have a somewhat different dynamic CSS using qualify as well.)
Myself, I prefer the Gridded Picture Viewer tiddler “application” for viewing one image at a time, but maybe it would be good for folk to have something to view many tiddlers in the story river as Gridded pictures ?
I shared that prototype for anybody to use as they need, so by all means, please go right ahead and re-purpose any bits of that prototype that fits your needs.
EDIT: You will have to very significantly redesign things. The number of cells in the grid involves a stream of dynamic CSS for the one Gridded Picture Viewer. For multiple image tiddlers meant to be individually viewed in each a custom grid, you’ll need a stream of CSS for each tiddler. Gonna get really messy.
I probably won’t right now. As I mentioned, I have no need for gridded pictures, and I have a number of other projects on my plate. But if I do need it, this looks like a good starting point.