Closed (fixed)
Project:
Image Resize Filter
Version:
6.x-1.9
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
23 Sep 2010 at 20:48 UTC
Updated:
26 May 2025 at 08:52 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedDeep in the insert.module on line 349 I found a solution:
// This variable has no configuration location. It may be set by placing
// $conf['insert_absolute_paths'] = FALSE;
// in the site settings.php file, or by manually running variable_set().
// For reasons why this might not do what you want and why there's no UI
// see http://drupal.org/node/640352.
I placed the $conf in settings.php, it worked.
I dont't know if this is an project insert issue or an image resize issue. I wil post a link in the insert project issues, pointing here.
May be both maintainers can make contact with each other, and make a nice solution for making insert working with image resize. .
Comment #2
quicksketchI'm actually the maintainer for both modules.
Unfortunately it is literally impossible for Image Resize Filter to work with relative paths. Because the same content may be shown in different places, relative paths do not work with Image Resize Filter (or really, with Drupal as a whole). I'm moving this issue to postponed for other users that have this same problem, but there is nothing that can be done to Image Resize Filter to make this possible.
Comment #3
danny_joris commentedI have the same issue here. It works fine when using IMCE because imce inserts images as
/sites/default/files/image.jpg, while the insert (or wysiwyg?) module inserts images as../../sites/default/files/image.jpgwhich does not work.I don't really see the reason behind outputting an image with a ../../ prefix..
Edit: This seems to be the cause: #905032: All images are inserting with relative paths (i.e. ../../files/example.png) It worked well in Chrome (although in Chrome there weren't any image resize handlers available)
Comment #4
philbar commentedI can confirm this problem. I simple switched back to fixed path and it works now.
Comment #5
philbar commentedNote - it did give attempt to resize my images, but was unsuccessful. Definitely broken. At least ignore relative path.
Comment #6
quicksketchLooks like it already doesn't work with relative paths unless they start with a dot, not sure why I ever thought starting with a dot would work adequately. Image Resize Filter looks like it's been this way since the original version.
Committed this patch to D6 and D7 versions.
Comment #7
quicksketchA followup patch, since we skip images immediately if they start with a dot (or really any character but a slash), we can also remove the IF statement a few lines after the removed check from the first patch. This patch also committed.
Comment #8
topdawg commentedI can't get this module to work. I see the type cursor I beam and no handlebars on images. The image turns blue when selected but that's it. Appreciate tips.
Comment #9
quicksketchThis module does not provide WYSIWYGs or ways to resize images, it just creates the properly sized image when viewing the node (it doesn't affect the edit form in any way). It's a known issue that Safari does not get resize handles in many WYSIWYGs, I suggest checking with the WYSIWYG library you are using (CKeditor, FCKeditor, tinyMCE, etc).
Comment #10
topdawg commentedI got it working - it was permissions (what else?)
Ensured SU PHP is on so I can set 755 as write.
Set the permissions on the resize and tmp folders and where I could thing of images being stored also to 755.
I got handles, I got advanced image for css options, and yes I'm using both TinyMCE and FCKeditor, at this point to compare which would work. All optioned by wysiwyg.
Joe
Comment #11
el_reverend commentedI have noticed that the latest version of Safari, Chromium, etc. do NOT get the resize handles in order to resize the image provided. I have tested it in Firefox and the handles do show up. One thing I currently see is that the alignment set in CKEditor (in my case) do not translate into the theme. No classes or styles where modified upon saving the content type, wo the theme does not float or restyle the image. Is there a way to include the resize handles in CKEditor or ensure that is saves classes to the [img] tag?
Thanks.
Comment #12
quicksketchPlease stop asking questions about your WYSIWYG here. Ask the authors of the WYSIWYG library you are using.