CGSmartImage breaks images in ListIt2 module admin

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
applejack
Power Poster
Power Poster
Posts: 1015
Joined: Fri Mar 30, 2007 2:28 am
Location: London

CGSmartImage breaks images in ListIt2 module admin

Post by applejack »

I have a Listit2 module for which one fields is of type GBFilePicker. In the admin screen showing the list of items for the image column the image is broken as it is trying show a CGSmartImage such as uploads/_CGSmartImage/img-830d31087b4aa42ea83b304ff3afe79a/

Clicking on the broken image shows the image in Colorbox. If I uninstall CGSmartImage the thumbnails show fine.

CMS 1.11.7
CGSmartImage 1.12.1
ListIt2 1.4
Last edited by applejack on Mon Oct 07, 2013 12:29 pm, edited 2 times in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: CGSmartImage breaks images in ListIt2 module admin

Post by calguy1000 »

Sounds more like a problem with GBFilePicker.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
applejack
Power Poster
Power Poster
Posts: 1015
Joined: Fri Mar 30, 2007 2:28 am
Location: London

Re: CGSmartImage breaks images in ListIt2 module admin

Post by applejack »

Using GBFilePicker in a normal CMS template shows the thumbnail fine but yeah could still be the culprit, just wondering if anyone else had the same issue. If I edit the record the thumbnail shows fine.
applejack
Power Poster
Power Poster
Posts: 1015
Joined: Fri Mar 30, 2007 2:28 am
Location: London

Re: CGSmartImage breaks images in ListIt2 module admin

Post by applejack »

I just set up another ListIt2 module and this time used file upload as the field type and it is still broken in the same way and again if I uninstall CGSmartImage it works as it should so therefore I don't think that it is due to GBFilepicker.
Stikki

Re: CGSmartImage breaks images in ListIt2 module admin

Post by Stikki »

If CGSI is installed, all thumb generation is using that module, else it uses what other modules / parts offer.

There must be bug if thumbs ain't working, please report it to LI2 BR section. I'll take a look when i have time.

-Stiks-
applejack
Power Poster
Power Poster
Posts: 1015
Joined: Fri Mar 30, 2007 2:28 am
Location: London

Re: [Solved] CGSmartImage breaks images in ListIt2 module ad

Post by applejack »

Doesn't show because of trailing slash on image URL because of config and system httpd conf.
applejack
Power Poster
Power Poster
Posts: 1015
Joined: Fri Mar 30, 2007 2:28 am
Location: London

Re: CGSmartImage breaks images in ListIt2 module admin

Post by applejack »

I removed the trailing slash which was being adding via the .htaccess file and now if I try and access the image directly it throws a page not found.

I think it is to do with the fact that there is no file extension or not prepended with e.g. data:image/jpeg;base64, and so therefore Apache doesn't know what type of document it is. I tried adding a mime type of application/base64 without an extension to Apache's config but still serves a page not found.

If I use CGSmartImage directly in a core CMS template then the image it generates starts with data:image/jpeg;base64, and works.
hexdj
Power Poster
Power Poster
Posts: 415
Joined: Sat Mar 24, 2007 8:28 am

Re: CGSmartImage breaks images in ListIt2 module admin

Post by hexdj »

This seems to be solved in recent versions of CGSMartImage, just make sure you go to CGSI Settings > General > Force all output files to have a file extension:Yes
applejack
Power Poster
Power Poster
Posts: 1015
Joined: Fri Mar 30, 2007 2:28 am
Location: London

Re: CGSmartImage breaks images in ListIt2 module admin

Post by applejack »

Ok thanks for letting me know I haven't used it since so wasn't aware.
hexdj
Power Poster
Power Poster
Posts: 415
Joined: Sat Mar 24, 2007 8:28 am

Re: CGSmartImage breaks images in ListIt2 module admin

Post by hexdj »

No problem, I was just facing the same issue and found out the solution on my own, so I just wanted to have it posted in case someone comes across the issue later on.
Post Reply

Return to “Modules/Add-Ons”