a massive rewrite of the Software, to make such work.
Ernie
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Simple return filename instead of resizing and storing in cache:
On line 7 of catalog/model/tool/image.php add:
Code: Select all
if ($this->request->server['HTTPS']) {
return $this->config->get('config_ssl') . 'image/' . $filename;
} else {
return $this->config->get('config_url') . 'image/' . $filename;
}
That is a dumb idea.How I can serve images directly from their /image/ locations
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Partly WRONG!no more thumbs and popups are generated !
If your Site uses 'Originals', especially in Listing Sections, where those images
are to be shrinked to the Size as declared in Admin, and depending on images
size and image-data-size, your Shop Pages will load very slowly.
And by uploading images trough Admin, the admin image routine file will still
generate it's images in the image/cache/... Section, and depending on
the amount of images you use, and the products you change/replace/add, one day,
your Server could refuse to further work, due to the masses of never ever used files.
The answer you got therefore only told you half of the story. It takes more than just
replacing the content of the File mentioned, and requires STRICT sizing of images before
uploading them to a Server, or you will end up in frustration only.
Ernie
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
If you take a look in the catalog/controller/mail/order.php file:
Code: Select all
$data['logo'] = $order_info['store_url'] . 'image/' . $this->config->get('config_logo');
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Because the cache holds various versions of the original image serving various purposes, resized and optimized.Why do you think that?
If you serve the originals:
1) you would have to resize and optimize them yourself which is a pain and end up with the same result just in the original directory
2) use the same image for all purposes which looks terrible or slows the browser down when browser resized.
3) have OC do resizing and optimizing "on-the-fly" which slows you down on the server side.
There are absolutely no positives to this idea, only negatives, so yeah, dumb.
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
As others have said, it's probably not a good idea but it would be worth you telling us why you want to do it?
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
You have no issue with uploading 50K originals so what is the issue with 150K images in the cache?
If you think that is too much for one directory, split the originals over several directories and the cache will mirror that.
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
The answer is not to avoid the cache, it's to improve the quality of the cache.
This has been asked lots of times, including here:
viewtopic.php?t=201372
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Users browsing this forum: Baidu [Spider] and 414 guests