Loading...
 
Skip to main content

Image does not display correctly when width differs from that of actual image

Status
Closed
Subject
Image does not display correctly when width differs from that of actual image
Version
11.x
Category
  • Error
  • Regression
Feature
Image Gallery
Wiki Plugin (extends basic syntax)
Resolution status
New
Submitted by
alain_desilets
Volunteered to solve
manivannans
Lastmod by
alain_desilets
Rating
(0)
Description

Whenever I try to insert an image in a wiki page and specify its width:

Copy to clipboard
{img fileId="51" width=100}

The image doesn't display properly. All I see is the plugin icon:

https://www.evernote.com/shard/s235/sh/56d7e686-a523-41e7-9df9-5059fdd80705/cbec3e47624cc4a9c0f7a45630039d06

Yet, if I display the image without the width argument

Copy to clipboard
{img fileId="51"}

It displays properly. If I specify a width that corresponds to the actual resolution of the image file, then it also works.

I have seen this problem with different file formats.

I tried to reproduce the problem on show, but was not able to:

http://user-10156-4744.show.tikiwiki.org/tiki-index.php?page=HomePage

But here are some screen shots from my 11.x site where the problem happens:

Here is a page with an image inserted with and without the width:

https://www.evernote.com/shard/s235/sh/b0e781ca-36ed-473a-a517-6ce457b568f4/2606ea1bece64d3326a2042d54ad9da0

Here is the source of that page:

https://www.evernote.com/shard/s235/sh/e2b0b7f5-53fb-479a-95c0-3dc9cf52ed9d/271ab3a14a21da68e8294dbf91d372c5

Solution
I had tried this bug on trunk and it not exist in trunk. Please check this screenshot Image
Importance
5
Easy to solve?
7
Priority
35
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
4744
Created
Wednesday 11 September, 2013 20:03:05 UTC
by alain_desilets
LastModif
Tuesday 29 October, 2013 14:44:39 UTC


Show PHP error messages