| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
quick hack to eliminate thumbnail image jaggies (libgd req) | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||||
|
|||||||||
If your not sure if your server has GDlibrary installed, place this script on your server and execute you should see some output if its installed.
Code:
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#12
|
|||||||
|
|||||||
Do need GDlibrary if you're not going to use watermarks?
__________________
Version 4.2.3 |
|||||||
#13
|
|||||||||
|
|||||||||
Quote:
Yes, GD Library is required to generate the smaller thumbnails, as well as watermarking.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#14
|
|||||||
|
|||||||
Boomer - when I do everything listed above I get this error
Fatal error: Call to undefined function: func_get_thumbnail_url_() in /usr/local/apache/htdocs/store/include/search.php on line 45 Any Ideas why??
__________________
Xcart Version: 4.1.6 |
|||||||
#15
|
|||||||||
|
|||||||||
Re-read the instructions and you need to declare this function in include/func.php, its similar to the existing one, just note the trailing "_" in the function name.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#16
|
|||||||
|
|||||||
Ok I have resolved that problem and now it is not giving me any errors. However it is not adding a value in the thumb_path column in the database. Will I need to dump all of my products and the upload them again??
__________________
Xcart Version: 4.1.6 |
|||||||
#17
|
|||||||||
|
|||||||||
The modification won't batch process existing products, simply delete the existin thumbnail and re-add the product and you should see an entry in the table for the newly created "mini" thumb.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#18
|
|||||||
|
|||||||
Ok I have another quick question. I have deleted all products and then re-uploaded them through a csv import. Yet it still did not write a path. Is this something that I will have to do 1 by 1 in order to make it work? Or would I need to edit provider/import.php to make it add the path for the mini image?
If I need to edit the import.php any idea about how that could be done?? Thanks!
__________________
Xcart Version: 4.1.6 |
|||||||
#19
|
|||||||||
|
|||||||||
Quote:
No theres zero mods done to import.php so only one by one is possible, you'll need to re-implement the GD functions into the import.php files in order to do this in batch.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#20
|
|||||||
|
|||||||
Ok this is what the import.php code looks like where it pertains to the thumnail.
Code:
Would it be as simple as adding the thumb_path values to the insert queries? Or is there more to it than that? By the way thanks for all of your help Boomer!! Cam
__________________
Xcart Version: 4.1.6 |
|||||||
|
|||
X-Cart forums © 2001-2020
|