| Commit message (Expand) | Author | Age |
* | cleanup now unused setting | Joey Hess | 2011-11-17 |
* | Always use true image size | Per Carlson | 2011-11-17 |
* | img: Generate png format thumbnails for svg images.•••Imagemagick does not generate svg images very well, but it can convert
them to png quite well.
For browsers that don't yet support displaying svg, this also provides a
workaround; just scale the svg down to get a png. But the workaround is
partial, since scaling the image larger, or leaving it the same size will
cause the original svg to be displayed. Since browsers are actively
improving svg support, this is good enough for me.
| Joey Hess | 2011-06-29 |
* | use one-parameter form of urlto | Joey Hess | 2010-11-29 |
* | Use local paths for most references to pages | Simon McVittie | 2010-11-23 |
* | img: If a class is specified, don't also put the img in the img class. | Joey Hess | 2010-10-13 |
* | img: Add a margin around images displayed by this directive.•••Particularly important for floating images, which could before be placed
uncomfortably close to text.
| Joey Hess | 2010-07-05 |
* | avoid ugly warning if size="" is specified | Joey Hess | 2010-06-12 |
* | img: Support hspace and vspace attributes. | Joey Hess | 2010-06-12 |
* | improve preview mode comments | Joey Hess | 2010-06-09 |
* | img: Fill in missing height or width when scaling image. | Joey Hess | 2010-06-08 |
* | setup file ordering | Joey Hess | 2010-02-12 |
* | img: Fix a bug that could taint @links with undef values. | Joey Hess | 2010-01-28 |
* | only use css alignment stuff for table•••This way users can use all the other alignment values when not including a
caption. Also, it will work without the standard style, and I don't have to
worry about regressions this way.
| Joey Hess | 2010-01-07 |
* | img: remove special case handling of link=yes•••Only exists as an undocumented backwards compatability hack.
| Joey Hess | 2010-01-07 |
* | refactor | Joey Hess | 2010-01-07 |
* | brace style | Joey Hess | 2010-01-07 |
* | Support align attribute for img with caption•••This is achieved by preparing CSS definitions that emulates the behavior
of the align attribute, and passing it to the outermost IMG wrapper
(A or TABLE) instead of passing the align value to IMG directly.
| Giuseppe Bilotta | 2010-01-06 |
* | img: use presence dependency when linking to a page | Joey Hess | 2009-10-09 |
* | img: Fix dependency code for full size images.•••I had assumed that an image shown full size did not need add_depends, since
a change would not need a change to the displaying page.
But this is not true if the image is modified and its size changes. Then
the page needs to update its img tag to reflect the current size.
| Joey Hess | 2009-09-27 |
* | img: Correct bug in image size calculation code.•••If an image was resized smaller, with width and height specified to values
that did not fit its aspect ratio, the image tag with/height were not
adjusted to the actual size imagemagick chooses.
This was broken by 03449610d6c666ba24bea68f01d896613e522278.
To fix it right, it unfortunatly needs to always read the src image now,
in order to determine if the image is being displayed larger, or resized
smaller. When resized smaller, it then always uses the size of the
thumbnail, while for larger it calculates the size.
(Only way to get rid of this sometimes extra image read would be to change
it to not allow displaying images larger.)
| Joey Hess | 2009-09-27 |
* | img: Don't generate new verison of image if it is scaled to be larger in eith...•••Although imagemagick handles even really large sizes sanely, using a page
file, doing so would just waste time and disk space, since the browser
can be told to resize it larger.
| Joey Hess | 2009-08-28 |
* | img: depend on absolute page name, not relative•••Previously, [[!img bar.jpg]] on foo, where foo/bar.jpg exists, would
get a dependency equivalent to "glob(bar.jpg)" (which might not match
anything), rather than the correct "glob(foo/bar.jpg)".
(cherry picked from commit 85b2ec49ecd12dd23e5c432933457a72744ce7cb)
| Simon McVittie | 2009-08-15 |
* | img: Fix adding of dependency from page to the image.•••This was impressively broken. add_depends was being called with params
backwards, and on parameter was set to the name of the generated
file, which isn't in the source.
Now updates to images will update the page that contains them, thus
updating them. This is unncessary for fullsize images, so skipped.
| Joey Hess | 2009-07-27 |
* | improve error message | Joey Hess | 2009-07-19 |
* | img: Pass the align parameter through to the generated img tag. | Joey Hess | 2009-07-11 |
* | img plugin: do not emit a redundant double-quote before alt attribute | Simon McVittie | 2009-06-16 |
* | Avoid %links accumulating duplicates. (For TOVA)•••This is sorta an optimisation, and sorta a bug fix. In one
test case I have available, it can speed a page build up from 3
minutes to 3 seconds.
The root of the problem is that $links{$page} contains arrays of
links, rather than hashes of links. And when a link is found,
it is just pushed onto the array, without checking for dups.
Now, the array is emptied before scanning a page, so there
should not be a lot of opportunity for lots of duplicate links
to pile up in it. But, in some cases, they can, and if there
are hundreds of duplicate links in the array, then scanning it
for matching links, as match_link and some other code does,
becomes much more expensive than it needs to be.
Perhaps the real right fix would be to change the data structure
to a hash. But, the list of links is never accessed like that,
you always want to iterate through it.
I also looked at deduping the list in saveindex, but that does
a lot of unnecessary work, and doesn't completly solve the problem.
So, finally, I decided to add an add_link function that handles deduping,
and make ikiwiki-transition remove the old dup links.
| Joey Hess | 2009-05-06 |
* | img: only provide alt text if it was specified•••if suitable alternate text is unknown, then it should not be given.
empty alt text is suitable mainly for purely decorative images.
(cherry picked from commit 3cd7f67f0cf894f4fd5ba16f68e82e4f7bdbfdc5)
| Gabriel McManus | 2009-01-21 |
* | finalise version 3.00 of the plugin api | Joey Hess | 2008-12-23 |
* | Coding style change: Remove explcit vim folding markers. | Joey Hess | 2008-12-17 |
* | img: Support sizes like 200x. Closes: #475149 | Joey Hess | 2008-09-09 |
* | add plugin safe/rebuild info (part 1 of 2)•••too many plugins.. brain exploding..
| Joey Hess | 2008-08-03 |
* | don't show an error if the image is missing, instead, a broken link | Joey Hess | 2008-07-21 |
* | avoid internal error message when img uses just-deleted page•••I think this used to be a fatal error, not just inline error, so I don't
know why it was never noticed, but if a page that an img directive mentions
gets deleted, bestlink() returns a file that no longer exists, and
srcfile() throws an error.
Note that bestlink's behavior of returning a deleted file could be
considered buggy. But, if it's changed to not do that, the page with the img
on it is not updated at all when the file is removed.
| Joey Hess | 2008-07-21 |
* | switch preprocess hooks to use error function | Joey Hess | 2008-07-13 |
* | convert fatal error to warning•••Since perlmagick is not a hard dep, and goodstuff is enabled by default,
imgs should not crash builds
| Joey Hess | 2008-07-12 |
* | Don't generate empty title attributes, etc, and allow setting defaults for cl... | Joey Hess | 2008-06-08 |
* | img: Support captions. | Joey Hess | 2008-06-07 |
* | img: Support a title attribute, will be passed through to html. Closes: #478718 | Joey Hess | 2008-04-30 |
* | revert destpage part of f7bdc2385•••destpage does not normally need to be worried about when creating other files
as part of the process of rendering a page. Using destpage results in
inlined pages creating two copies of such files. It works to not use destpage
in this case because the inlining page depends on the source page, so if the
source page is modified or deleted the inlining page will be updated.
| Joey Hess | 2008-03-23 |
* | * Use forcebaseurl to make page previews be displayed with the html base••• set to the destination page. This avoids need for hacks to munge the urls
in preview mode, which fixes several bugs.
* Several destpage fixes in plugins.
| Joey Hess | 2008-03-12 |
* | optimisation: detect scan mode and avoid generating image | Joey Hess | 2008-01-09 |
* | * img: Allow the link parameter to point to an exterior url. | Joey Hess | 2007-12-28 |
* | * img: Avoid nesting images when linking to another image. Closes: #457780 | Joey Hess | 2007-12-26 |
* | * img: Allow link=somepage to cause the image to link to a given page.••• Slight overriding of link, as link=no is still used to disable the linking
entirely. Unless you have a page named "no"..
| joey | 2007-09-22 |
* | * In img tag, allow link=no to disable link to full size image. Thanks,••• Nis Martensen. Closes: #433188
| joey | 2007-07-15 |
* | * Corrected a typo in an error handler in the image plugin. | joey | 2007-06-19 |
* | * Apply a patch from Carl Worth allowing a class attribute to be passed••• through the img plugin. Also allow the id attribute to be passed through.
| joey | 2007-05-28 |
* | * Deal better with rebuilds that involve moving files; track and clean up the••• old files.
* Change where the img plugin puts scaled images. It's better to make the
scaled images subpages of the page that embeds them, rather than putting
them alongside the original image, since if two pages scale the same image
the same way, this prevents complications in dealing with two pages
creating the same file. The move will be handled transparently, though you
might want to rebuild your wiki to make it occur in one step.
| joey | 2007-05-24 |