Download & Extend

Only attached images are resized?

Project:Mobile Plugin
Version:6.x-1.1
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

The imagecache doesn't work with Mobile Plugin? Only the attached images under the "files" directory work?

I already have a site with some imagecache presets, custom themed views and pages. And I would like to use the Mobile Plugin to autoscale all the images without build any new imagecache preset, views and themes for the mobile site.

Comments

#1

The module will hook to node/comment view and scale all img tags in the markup. You can try to increase the mobileplugin module weight so it does kick in after all the other modules. Current version does not optimize block contents (this became possible in 6.x I think).

If you use imagecache in templates those won't be affected. I think it is impossible to hook after the template layer so you may have to rewrite the templates for a mobile theme.

#2

I have a similar problem and the suggestion in comment #1 doesn't help. I have a slideshow in some nodes that I've implemented via a node view cck field. When the mobileplugin_optimize() function is run (even with the module weight set higher than any other module), the html for this view is not currently rendered and therefore, the images can't be scaled.

#3

> If you use imagecache in templates those won't be affected. I think it is impossible to hook after the template layer so you may have to rewrite the templates for a mobile theme.

I assume the OP means imagecache used the regular way -- that is, as a CCK display formatter. That happens well before the theme.

nobody click here