Closed (fixed)
Project:
Image Resize Filter
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Feb 2013 at 00:22 UTC
Updated:
20 Jul 2015 at 14:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
circuscowboy commentedPatch attached
Comment #2
quantos commentedcan you elaborate please @circuscowboy. I just noticed these queries today too and as a non-techie, in the back-end sense, I'm not sure what this means. The majority of the sites we're building here are now all responsive and use the adaptive-image module which is where I'm seeing these strings.
Do we need to be concerned about anything? For example, images not being handled by the adaptive image module for their required size etc?
Any advise, much appreciated.
Q.
Comment #3
circuscowboy commentedI am not aware how the adaptive image module handles images. I do know that this module wasn't working right with the string attached. I would recommend creating an issue in the adaptive image module issue queue if things do not seem to be working. If it is just an observation of the query string - it is new and part of the 7.20 security update.
Comment #4
mibfire commentedhttp://drupal.org/node/1929740#comment-7122608
Circuscowboy do you have any idea for theme issue(linking images from theme dir)?
Comment #5
quicksketchUpdating title for clarity. @mibfir I closed your issue since it's reporting the same problem.
I think we need to preserve the file query string somehow in order to do our sub-request that generates an image if it's missing, since D7 won't generate the image if the token is missing. It may be easiest to remove the query string as this patch does currently, but add it back to the URL before we do the request to generate the image initially if it's an image style.
Comment #6
mrryanjohnston commentedI was also experiencing issues with this with the media module. The patch solves the problem I was having, but I'm not sure of the implications for it.
`Unable to generate the derived image located at public://styles/sidebar_thumb/public/test.png.`
Thanks, @circuscowboy!
Comment #7
dalinThis looks good.
Comment #8
dalinHold on a sec, #1 doesn't work if the image does not require resizing. In that case we need to retain the query and add it back later.
Also let's make the world a better place by not using regex unless it's necessary :)
Comment #9
mariacha1 commented#8 clears it up for me. I'll test out and set to rtbc if I don't find errors, but the code looks solid.
Comment #10
pipboy-1 commentedIf a link to the original image is generated, the patch does not add the query string back to the href value, only to the src of the resized img element. That is, the generated code is:
instead of
I've attached a minor modification to your patch to handle that.
becomes
BTW: is it necessary to add the query string to the img element in this case at all?
Comment #10.0
pipboy-1 commentedforgot reason tagging it major
Comment #11
anybody#8 works great for us. #10 lets notices pop up. I think
should better be checked by isset() or !empty().
Anyway... what's about a progress here? This is truely critical and breaks integration with insert.module completely for example, if you use the colorbox format. Other issues like #905912: Image Resize Filter and Insert module already mentioned the problem.
Comment #12
webcultist commentedPatch works great. Was looking all the time for a problem with my media module, but this patch just made it work. Please just commit 10#!
Comment #13
anybodyComment #14
liam morlandReroll.
Comment #15
joelpittetBeen using this for a while, the re-roll looks good. Setting as RTBC.
Comment #16
anybodyConfirming RTBC. Can we have that in the next release? :)
Thank you very much for your work!
Comment #18
ram4nd commentedComment #19
anybodyThank you!
Comment #20
liam morlandThanks!