Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Support / AdsManager Support / Want to know the logic behind the image saving

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

Want to know the logic behind the image saving

More
10 years 5 months ago #20279 by hadia9683
Hi,

I just wanted to know how you are saving the images in file directory for ads. I observed once ad is created you are saving three images of one image.

for example, i posted ad Test
you save images like that
test_75881_1_t.jpg
test_75881_1_m.jpg
test_75881_1.jpg


Could you please give me understanding of this logic.
More
10 years 5 months ago #20298 by loic
Hello,

The images are recreated by the component to fit exactly the size set in the configuration.
This is the reason why a animated gif will not be working if you update one.

We create three images for each display type, the thumbnail (_t) are displayed on the list view. In the list a lot of images can be loaded, so the thumbnails are here to limit the loading time.

The medium and large image are for the details page or the module.

Best regards.
More
10 years 4 months ago - 10 years 4 months ago #20917 by sanida
Hello,
When the user gives up the ad, add 1 image.
One picture will be 3 images files:
1. The original size
2. medium size
3. small size
I do not use nowhere in medium image. In one module either.
I use only the original and the small picture. (Eg .: paidsystem ads, grid mode)
How could stop to take a picture when uploading files ad-headline_m.jpg not creating?
Currently, more than 4,500 of these (..._ m.jpg) images in my hosting, and that occupies to 2GB. :unsure:
It is very difficult to delete one by one each time. :ohmy:
Last edit: 10 years 4 months ago by sanida.
More
10 years 4 months ago #20928 by loic
Hello,

If you want to stop the generation of medium images, open 'administrator/components/com_adsmanager/models/adsmanager.php' and comment the line 385 and 387 :
$desc_img = $this->createimage($write,$dst_m_img,"$path/$medium_name", 100);
...
$desc_img = $this->createimage($write,$dst_m_img,"$path/$medium_name", 0);

Best regards.
More
10 years 4 months ago #20937 by sanida
Hello, thank you!
I did that and I tried.

_m.jpg not prepared.
But I got an error message:
Attention!
It is located in the source file
:(
Attachments:
More
10 years 4 months ago #20948 by loic
Hello,

I was afraid of that, that mean you will not be able to change the code. The medium images must be generated in order to adsManager to work.

Another solution you can try is set the max width and heigth of the medium images to 0x0. I never tried that so I don't know what it will do.

Best regards.
Time to create page: 0.064 seconds
Powered by Kunena Forum