thickbox / mime type problem?

Hi,

i added thickbox to my gallery to show the full images but i have a problem right now. Thickbox doesnt show the image but the image code instead, like this:

????JFIF??;CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 85 ??C !"$"$??C??3?"?? ???}!1AQa"q2???#B??R??$3br? %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz??????????????????????????????????????????????????????????????????????????? ???w!1AQaq"2?B???? #3R?br? $4?%?&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz????????????????????????????????????????????????????????????????????????????Xzp54??-?4`<?a??????c?--%-="" u?);w??@="" <="" 1@?3???="" ??p^)?s????g??1i?i\?fv?w???b??\v!+?!?v???n??ro?&="" ;???qf)?qi??xab??1n?he&???"?f="" $??+???qzz?d?v="" ?:?_t??gg?[e?^??="" ???8_e????[??5x??e???%??????q??+?k????4yw3?4?t??-??q?n????7$g??lm&")in{r?oj????ué?g???gcg?+?r?????o?:?6??r??="">?A?*?p??9???r8?H??\{ ?g?Fv?=?UX;?-?f ?:e1NX??)?;?Gb??Ip??RA??Q-?0v?"?????T???x?P!

I think it could be some kind of a mime type / encoding problem but i have no clue how to solve it.

Do you know what i can do to make zenphoto generate correct jpg´s so that thickbox would display them as image?

I tried it with imagemagick instead of gd too but i had the same result.

Thanks for your help!

Comments

  • Do your images show up correctly without Thickbox? Then enphoto is indeed generating correct photos and your use of Thickbox is the cause of the problem. Most likely it did not tell the browser it was displaying an image.

    We do not use Thickbox and instead use colorbox as it plays well with jquery which is our primary javascript tool. Many of our themes show images with colorbox. Perhpas you should look into how they do it.
  • fuzzi Member
    hey sbillard,

    thanks for your answer! yes ist shows the pics correctly without thickbox. i will check out colorbox asap, thanks for the tip!
  • fuzzi Member
    here i am again :)

    i tried colorbox but i have the same problem. It displays code instead of the image. But theres one new thing i discovered: It displays the code only when the image is created the first time. if i reload the page after the bigger image has been created one time (and been displayed as code), the picture shows up correctly.

    do you have any idea where else i can look for the error?

    thank you very much!
  • That would be because colorbox does not know that the item being displayed is an image. The image processor url does not end in something that can be identified as an image suffix. You have to tell colorbox that the item being displayed is an image. You need to add `photo:true` to the colorbox ready function.
  • fuzzi Member
    thanks a lot, its working now! :)

    btw - i need some paid support for little plugin or zenphoto modification. how can i reach you?
Sign In or Register to comment.