Hi,

I'm stunned by this module - it simply works (mostly) and seems to solve problems with my default input format (mediawiki_filter; description) I'm struggeling with for years. So first of all thank you very much for this module! I's a shame I haven't found it earlier (also thanks to Hetta who pointed me to 'image_filter').

However, I'm experiencing problems to select cutomized image derivates created by 'image' module. The hardcoded presets ("thumbnail", "preview", and "original") seem to work fine.

I'm using the following settings at ./admin/settings/image/nodes:

  • "Original" (= localized "original") => (none)
  • "Miniaturansicht" (= localized "thumbnail") => 150 x 150
  • "Vorschau" (= localized "preview") => 640 x 640
  • "400" => 400 x x400
  • "75" => 75 x 75
  • "250" => 250 x 250

Embedding something like [image:953 align=center size="preview"] creates a left (!) aligned image with 640x640 dimensions. Except the wrong alignment this is fine.

Embedding [image:953 align=center size=400] or [image:953 align=center size="400"] produces the original size image, not the derivate named "400". Maybe 'image_filter' doesn't accept numbers as derivate names. And maybe it might be considered to distinguish heights/widths with measurements (like px or em) from derivate's names?

Thanks & greetings,-asb

Comments

asb’s picture

Addition observation regarding the default derivates: [Image:35602 align=center border="1" size=Preview] does not work (outputs the unscaled full-size image), [Image:35602 align=center border="1" size=preview] ("Previews" vs. "preview" gives the derivate).

Greetings, -asb

Scott J’s picture

"You can move an image to the left or right on the Web page or control its vertical placement with the ALIGN property, but you can't center it using the ALIGN attribute. align="center" isn't valid HTML. All browsers ignore align="center" when it's part of an IMG tag."
For more info, please see http://www.netmechanic.com/news/vol7/html_no10.htm or countless other online sources.

Instead, you could try something like <div style="text-align: center;"> [image:node_id] </div>. Or if you are using WYSIWYG module, then you should be able to control image placement with the editor buttons.

asb’s picture

Title: Selecting image derivated does not work » Selecting image derivates does not work

@Scott J:

This might be a misunderstanding; this is a module for users, and users want to center images with simple markup. Example markup with wikitags from MediaWiki:

[[File:example.jpg|center|caption]]

This renders to:

<div class="center">
  <div class="floatnone"><img alt="caption" src="image.jpg" width="400" height="267" /></a></div>
</div>

This is valid code, it is working reliably, and users can use it. That's what CSS was made for. Stuff like <div style="text-align: center;"> [image:node_id] </div> won't work with MediaWiki input formats, and - most importantly - no user will use it.

Greetings, -asb

PS: Please keep in mind that this issue is not about HTML purism but about selecting image derivates.

raintonr’s picture

Status: Active » Closed (fixed)

So is this actually still an issue or not?

I've just been doing some tests and this works fine with presets from both image and imagecache modules.

I'm going to close this, please re-open if you are still having troubles.

asb’s picture

Status: Closed (fixed) » Active

Yes, this is still an issue, as well with image module as with imagecache derivates. The inital issue description still applies for several sites where I'm trying to use the module.

Sometimes choosing a default derivate (untranslated default derivate label) works for single embedded images. Embedding multiple images on the same page with different derivate sizes either does not work at all (e.g. no images are embedded), or gives erratic results (e.g. all images are displayed with the same derivate size).

If this works better for others, this might be an incompatibility with my default input filter ('mediawiki_filter') which also has some image node embedding capability (similar, but different syntax; similar problems with embedding image module derivates into other content types).

Greetings, -asb

asb’s picture

With version 1.0 of "image" module, embedding customized image derivates still doesn not work at all. Any news about this?

asb’s picture

Priority: Normal » Major

Issue still persists and makes using this module together with 'Image' module and customized derivates impossible. Again, this can be very easily reproduced on any site with 'Image' module, just create a couple of derivates like "400" (400x400 pixels) and "250" (250x250 pixels), then try to embed them anywhere. You'll get erratic results, like embedded images in original, or thumbnail size.

Changing priority since this issue severly affects the functionality of the module.

sl27257’s picture

Status: Active » Closed (outdated)