Images-Talk


How to display a caption under an image.

[[PmWiki/Links | https://pmichaud.com/img/2003/atc-1.gif"Information about wiki links"|All things considered]]

[[PmWiki/Links"Information about wiki links"|All things considered | https://pmichaud.com/img/2003/atc-1.gif]]

[[https://pmichaud.com/img/2003/atc-1.gif"Information about wiki links"|All things considered -> PmWiki/Links]]

[[https://pmichaud.com/img/2003/atc-1.gif -> PmWiki/Links"Information about wiki links"|All things considered]]

https://pmichaud.com/img/2003/atc-1.gif"Information about wiki links"|All things considered

All things considered -> PmWiki/Links

All things considered

simon

Split it into 2 separate links: --Petko

[[PmWiki/Links|https://pmichaud.com/img/2003/atc-1.gif"alt text"]] | [[PmWiki/Links|All things considered]]

Can PMWiki display a .jpg image that has a space in the filename?

inside my local/localmap.txt file is:

  image /guitarstuff\/images\/

PMWiki can display a image file using this simple syntax:

  image:filename.jpg

I have lots of files with spaces in their filenames, but they do not display.

This will not work:

  image:guitar chords.jpg

This works, but uses cookbook recipe MarkupExprPlus and makes the markup really ugly:

  image:{(urlencode 'guitar chords.jpg')}

This works, but makes the image into a link:

  image:[=guitar chords.jpg=]

This works, but makes text look wierd:

  image:guitar%20chords.jpg

How do we display an image that has spaces in the filename?

gnuzoo

With the pre-release or 2.3.30, try image:[=guitar chords=].jpg with the extension unescaped. --Petko

This works, but is not obvious what is going on:

  image:[=guitar chords=].jpg

Why do these not work?

  image:"guitar chords.jpg"
  image:'guitar chords.jpg'

???

gnuzoo


Could we please enable .jfif as a default image format for PmWiki?

It appears to have wide browser support, and there are a few other common file images types listed that could be considered for PmWiki as well.

tia
simon April 29, 2020, at 03:48 AM

You can add any file extension for embedding by redefining the $ImgExtPattern variable, see FAQ section and Cookbook:AddImageType. --Petko May 24, 2020, at 02:49 AM


Adjacent Images

hi
i'd like to have two different images sitting right next to each, touching, with no space in between,
but with the basic Attach: markup, i only seem to be able to get it to work if there's a single space.

for instance, this works:
Attach:{$Group}./img1.jpg Attach:{$Group}./img2.jpg

but this doesn't:
Attach:{$Group}./img1.jpgAttach:{$Group}./img2.jpg

nor this:

Attach:{$Group}./img1.jpg\
Attach:{$Group}./img2.jpg

is there some way to achieve this with the Attach: markup?
thanks!
overtones99 March 27, 2011, at 06:31 PM

One way is to set a "tooltip title" after the first picture. The other is to place them in a table with border, cellpadding and cellspacing set to 0. See Test.AdjacentImages --Petko March 27, 2011, at 07:29 PM

The following markup doesn't seem to work as advertised. Instead of displaying the image, it merely displays a link:

[[http://example.com|Attach:Groupname./image.jpeg]].

Attach:Groupname./image.jpeg.

I want to be able to use an attached image as a link to a larger version of the image. How can I do this? tamouse September 15, 2010, at 04:13 PM

Attachments are not enabled for the PmWiki group. Have a look at Test.ImageThumbLink or try the following in Main.Wiki sandbox which is enabled for attachments:

%thumb%[[Test/ImageThumbLink-Img1|Attach:Test./HaleyDog.jpg]]%% -- SchreyP September 15, 2010, at 05:04 PM

Why doesn't the pct specification work in conjunction with lfloat and rfloat?

%rfloat width=10pct% http://pmichaud.com/img/misc/bubble.jpg"rfloat width 10%" 
%width=10pct% http://pmichaud.com/img/misc/bubble.jpg"width 10%" [[<<]]
%lfloat height=20pct% http://pmichaud.com/img/misc/bubble.jpg"lfloat height 20%" 
%height=20pct% http://pmichaud.com/img/misc/bubble.jpg"height 20%" [[<<]]
%width=10pct rfloat% http://pmichaud.com/img/misc/bubble.jpg"width 10% rfloat" 
%height=20pct lfloat% http://pmichaud.com/img/misc/bubble.jpg"height 20% lfloat" 
rfloat width 10%
width 10%
lfloat height 20%
height 20%
width 10% rfloat
height 20% lfloat

How can I put a table of captioned images within a numbered list? I cannot use a simple table, because images cannot (apparently) have captions within a simple table (Example 1). I cannot seem to use the table directives, because I cannot get them to work within a list without ending the list and causing subsequent numbering to restart (Example 2).

Table directives must start in column 1

Example 1

# First item
## First subitem
   || border=0 align=center
   || http://pmichaud.com/img/misc/pc.jpg"Paper clips" | '''Figure 1''' || %width=50pct%http://pmichaud.com/img/misc/pc.jpg"Paper clips" | '''Figure 2''' ||
## Second subitem
# Second item
  1. First item
    1. First subitem
      Paper clips | Figure 1Paper clips | Figure 2
    2. Second subitem
  2. Second item
Note caption (signified by bar) is not recognised, and an erroneous bar is displayed

Example 2

# First item
## First subitem
(:table border=0 align=center margin-left:4em :)
(:cellnr:)
http://pmichaud.com/img/misc/pc.jpg"Paper clips" | '''Figure 1'''
(:cell:)
%width=50pct%http://pmichaud.com/img/misc/pc.jpg"Paper clips" | '''Figure 2'''
(:tableend:)
## Second subitem
(:table border=0 align=center padding-left:4em :)
(:cellnr:)
http://pmichaud.com/img/misc/pc.jpg"Paper clips" | '''Figure 1'''
(:cell:)
%width=50pct%http://pmichaud.com/img/misc/pc.jpg"Paper clips" | '''Figure 2'''
(:tableend:)
# Second item
  1. First item
    1. First subitem
Paper clips
Figure 1
Paper clips
Figure 2
  1. Second subitem
Paper clips
Figure 1
Paper clips
Figure 2
  1. Second item
Use styles for indentation, you will have to resume the numbering, see Wiki styles

Not good enough

# First item
## First subitem
   || border=0 align=center
   || http://pmichaud.com/img/misc/pc.jpg"Paper clips"[[<<]]'''Figure 1''' || %width=50pct%http://pmichaud.com/img/misc/pc.jpg"Paper clips"[[<<]]'''Figure 2''' ||
## Second subitem
# Second item
  1. First item
    1. First subitem
      Paper clips
      Figure 1
      Paper clips
      Figure 2
    2. Second subitem
  2. Second item

If I use border instead of text-decoration for defining my link styles in the CSS (e.g. let's say I want to use a dotted line or a different thickness to show the link), I find that my image links also get this decoration, even if I also define a corresponding "a img" style with that decoration disabled. What am I missing? I notice when I examine the resulting page that there is a gap between the image and the border, which does not seem to be part of the "a img" class but is only "a".

Make sure you add the "a img" style after the "a" definition.

Vertical Alignment (such as in tables, i.e. valign)
- Fill in details here...

Unable to upload images? If you get messages telling you that the upload was not able to complete for some reason, here's something to check. If your web host has your web site

http://www.website.com

with username

username

the system path (not http) to your website could be at

/home/users/~username/public_html

If you have your wiki installed at what you think is the system's root directory

/pmwiki

your system's path to the wiki uploads directory might actually be

/home/users/~username/public_html/pmwiki/uploads

instead of the simpler

/pmwiki/uploads

That's how I was able to get mine -> mailto:ispinn aatt gmail ddoott com working.

This is a talk page for improving PmWiki.Images.