colorbox/js/colorbox.js, when processing a elements with colorbox class, does not respect height and width query parameters in the URL.

For example:

<a href="/path_to_image/F1.large.jpg?width=800&height=600" title="Figure Title" class="colorbox" rel="gallery-fragment-images">
  <img class="fragment-image" src="/path_to_image/F1.med.jpg">
</a>

Comments

phayes’s picture

Issue summary: View changes

fixing URL encoding

nagwani’s picture

Status: Active » Needs review

Add colorbox-load as well, seems to work.

<a href="/path_to_image/F1.large.jpg?width=800&height=600" title="Figure Title" class="colorbox, colorbox-load" rel="gallery-fragment-images">
  <img class="fragment-image" src="/path_to_image/F1.med.jpg">
</a>
frjo’s picture

Category: bug » support
Status: Needs review » Fixed

Add the class "colorbox-load" instead of "colorbox" if you need to set with and height etc.

Class "colorbox" gives fast and easy implementation for images in Colorbox.

For more complex solutions there is the "colotbox-load" feature.

phayes’s picture

Thanks folks!

nagwani’s picture

Also, enable the setting "Enable Colorbox Load" at /admin/config/media/colorbox

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

making file-path more explicit