Jump to content

[MODULE] Products Image CRON processing


Recommended Posts

Processing Products Thumbnail using CRON

Forget about the "Regenerate Thumbnails" Button and leave the work to CRON

 

 

+ Set the background color cropped images

+ Option of adding text to a Thumbnail

+ Watermark

+ much more option in sponsorship version

Does not work with PrestaShop version lower than 1.4.x

Tested for version 1.4.1, 1.4.8.2, 1.5.0.17, both img file system

21.11. 2012 - 25 download, updated for PS 1.5.2

post-300251-0-03953600-1350377974_thumb.jpg

img_cron_nvn.zip

Edited by Falgener (see edit history)
  • Like 2

Share this post


Link to post
Share on other sites

thanks you for this module, my shop need this, i am very happy.

 

i have increased only the value php.ini max_execution_time i have too many images. now work fine.

Thanx

 

yes, when your hosting allows it :)

But be careful with the setting max_execution_time...

Set max_execution_time sufficiently small compared CRON interval, so it was time for another site requirements :rolleyes:

 

On my server is max_execution_time 90s. According to the filter settings in img_cron_nvn - from 30 to 60 images will be processed in a single pass CRON.

Edited by Falgener (see edit history)

Share this post


Link to post
Share on other sites

i got it

 

for my new shop based on ps 1.5.1. i need to rebuild all new images for new products each night, then after the first cron, which requires more time, i need to change the set limit time lower. perfect!

 

i am sorry for my bad english, i do not have the english school.

 

thank you very much for your job!

Share this post


Link to post
Share on other sites
  • 2 months later...

Hi!

 

After a while using this plugin I'm starting to have some problems. Now suddenly I receive a "blank page" everytime I hit the "run image processing now" button. Do you know how I can solve this problem?

Share this post


Link to post
Share on other sites
Hi! After a while using this plugin I'm starting to have some problems. Now suddenly I receive a "blank page" everytime I hit the "run image processing now" button. Do you know how I can solve this problem?

 

OK, the solution was to increase memory limit (too big image) :)

Share this post


Link to post
Share on other sites
  • 5 months later...

Keep getting Error - see last Status when testrunning the image processing - both the bought version 0.9.3 and the free version 0.9.0 ?

 

Hi Dan,

check if /img_set/ subdirectory inside module is writable (Set permission 777).

Share this post


Link to post
Share on other sites

I've looked into the source code - this error you can not get in "Test now", but in "Run Images processing now".

Check what's in the line Last Status:

If there is: Image ID 1 Error: No JPEG create support.

- Check web root/img/p/ directory and subdirectory and files permission - should be 750.

Permission sometimes change - It usually happens when you migrate the site or when restoring from a local to ftp.

Edited by Falgener (see edit history)

Share this post


Link to post
Share on other sites
  • 3 months later...

Hi problem module

Notice: Constant _PS_BASE_URL_ already defined in ../modules/img_cron_nvn/processimg.php on line 22

 

Fatal error: Uncaught Db->executeS() must be used only with select, show, explain or describe queries thrown in ../classes/db/Db.php on line 476

Version PS 1.5.5.0

Edited by Prostoshoper (see edit history)

Share this post


Link to post
Share on other sites

Hi problem module

Notice: Constant _PS_BASE_URL_ already defined in ../modules/img_cron_nvn/processimg.php on line 22

 

Fatal error: Uncaught Db->executeS() must be used only with select, show, explain or describe queries thrown in ../classes/db/Db.php on line 476

Version PS 1.5.5.0

Hi,

It's an old module. For compatibility with old versions of PS there are some things as they are....

However, if you turn off the debug mode,  it will work. Tested.  :)

defines.inc.php (in PS 1.5.5)

else
{
	@ini_set('display_errors', 'off');
	define('_PS_DEBUG_SQL_', false);
	/* Compatibility warning */
	define('_PS_DISPLAY_COMPATIBILITY_WARNING_', false);
}

Share this post


Link to post
Share on other sites

 

Hi,

It's an old module. For compatibility with old versions of PS there are some things as they are....

However, if you turn off the debug mode,  it will work. Tested.  :)

defines.inc.php (in PS 1.5.5)

else
{
	@ini_set('display_errors', 'off');
	define('_PS_DEBUG_SQL_', false);
	/* Compatibility warning */
	define('_PS_DISPLAY_COMPATIBILITY_WARNING_', false);
}

 

Thank you all ok

Edited by Prostoshoper (see edit history)

Share this post


Link to post
Share on other sites
  • 2 weeks later...
  • 4 weeks later...

Hello Falganer,

 

Thank you for this nice module... Woks well in PS 1.5.6

 

I have a little question ... What is configuration for put the watermark image for only thickbox_default image ?

 

Thank you

Matias

Share this post


Link to post
Share on other sites
  • 3 months later...
  • 2 months later...

Hi I changed the

 code as you say

 

/* Debug only */
define('_PS_MODE_DEV_', true);
if (_PS_MODE_DEV_)
{
  @ini_set('display_errors', 'off');
  @error_reporting(E_ALL | E_STRICT);
  define('_PS_DEBUG_SQL_', false);
  /* Compatibility warning */
  define('_PS_DISPLAY_COMPATIBILITY_WARNING_', false);
}
else
{
  @ini_set('display_errors', 'off');
  define('_PS_DEBUG_SQL_', false);
  /* Compatibility warning */
  define('_PS_DISPLAY_COMPATIBILITY_WARNING_', false);
}
 
Now it doesnt show the error but it shows me a white site nor my admin panel. I have prestashop 1.5.6 I would need this to work Ho cand i do.

Share this post


Link to post
Share on other sites

 

Hi I changed the

 code as you say

 
Now it doesnt show the error but it shows me a white site nor my admin panel. I have prestashop 1.5.6 I would need this to work Ho cand i do.

 

Hi,

white screen appears usually if server memory limit is exhausted - image is too big or corrupted.

Try increase last processing image id. Next image will be skipped.

Share this post


Link to post
Share on other sites
  • 2 months later...

On each server is time limit. If time limit is reached, script is stopped. In "Last processing image ID" You see last image ID. Run again and again, until "Last Product image ID" = "Last processing image ID"  and status is "All thumbnails OK" or run with CRON.

Share this post


Link to post
Share on other sites

Ok,

try edit in processimg.php row 24

$securetime = ini_get("max_execution_time") - 10; 

 

to

 

$securetime = ini_get("max_execution_time") - 5; 

 

But better will be if You can change (increase) max_execution_time on Your server

Edited by Falgener (see edit history)

Share this post


Link to post
Share on other sites

In config/defines.inc.php row 38 is

@ini_set('display_errors', 'on');

?

If Yes, something error should be displayed.

Yes. In test mode all good, But when i press "run images processing now" i see an error: Time limit exceed. Launch again until the status is *All thumbnails OK* or setup CRON

Share this post


Link to post
Share on other sites

Yes. In test mode all good, But when i press "run images processing now" i see an error: Time limit exceed. Launch again until the status is *All thumbnails OK* or setup CRONHi,

 

 

You  download from here?

If Yes, download from http://netvianet.com/free-prestashop-module/23-products-image-cron-processing-free.html

I’m not sure, if here is latest version.

Share this post


Link to post
Share on other sites

You  download from here?

If Yes, download from http://netvianet.com/free-prestashop-module/23-products-image-cron-processing-free.html

I’m not sure, if here is latest version.

I am download from here http://netvianet.com/free-prestashop-module/23-products-image-cron-processing-free.html last version(0.9). Install module, configured module, add watermark, test work good, but when i click "run" again have an error( 

Why this problem can occur? any ideas?

Share this post


Link to post
Share on other sites

I am download from here http://netvianet.com/free-prestashop-module/23-products-image-cron-processing-free.html last version(0.9). Install module, configured module, add watermark, test work good, but when i click "run" again have an error( 

Why this problem can occur? any ideas?

Hi,

Copy CRON link (bottom from module) put this link into Your web browser address bar and enter, if any errors occurs.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More