#1 2025-03-25 06:24:12

mmain
Member
2024-08-03
6

Restrict generation of multiple images to Batch Manager

Hi just wondering if there is any way to stop automatic on demand generation of multiple images to use Batch Manager only i.e. switch this into a manual function?

Offline

 

#2 2025-05-01 16:11:11

alidemir
Member
istanbul
2025-05-01
10

Re: Restrict generation of multiple images to Batch Manager

In Piwigo, image processing (like resizing and generating thumbnails) usually happens automatically when an image is uploaded. However, it sounds like you want to prevent Piwigo from automatically generating these images (thumbnails, resized versions, etc.) and instead handle it manually through the Batch Manager.

While there isn't a direct setting in Piwigo to completely stop the automatic image generation and shift to only using the Batch Manager, you can achieve a similar result with some adjustments. Here's what you can try:

1. Disable Automatic Image Resizing via local/config (ImageMagick/ GD)
The most straightforward way to prevent automatic image generation is by disabling Piwigo’s automatic image processing features, which are controlled by the ImageMagick or GD library settings.

Method:
Access your Piwigo local/config directory on your server.

Open the config_default.inc.php file (or config.inc.php if it exists) in a text editor.

Find the section related to image processing, which is usually under something like config['gd_use'] or config['image_processing'].

You can modify the gd_use or image_processing setting to false to prevent automatic resizing.

For example, you might see something like this in config.inc.php:

php
Kopyala
Düzenle
$config['gd_use'] = true;
Change it to:

php
Kopyala
Düzenle
$config['gd_use'] = false;
2. Disable Thumbnails Generation:
Piwigo generates thumbnails automatically when images are uploaded. If you want to manually handle the thumbnail generation, you can disable this feature.

To do this:

Go to Administration > Thumbnails.

In the Thumbnail settings, disable automatic thumbnail generation.

You can also adjust the settings for batch processing to only generate thumbnails and resized images when you explicitly choose to do so in the Batch Manager.

3. Batch Manager Usage:
Instead of relying on automatic image generation, you can use Batch Manager for manual processing:

Upload Images Without Resizing: Upload your images directly without resizing. You can upload large files and then use Batch Manager to generate the thumbnails and resized versions for different sizes and formats.

Go to Batch Manager after uploading the images.

Select the images that need resizing or thumbnail creation.

Use the options to create or regenerate the thumbnails manually.

This gives you control over when images are processed.

4. Additional Customization (via Plugin):
If you want to enforce manual processing more strictly, you can look into customizing the Batch Manager functionality further. You could potentially write a plugin that disables the auto-generation behavior or provides more control over the batch functions.

Key Takeaways:
By modifying the configuration to disable gd_use or image_processing, you can stop automatic image processing after uploads.

Use the Batch Manager to manually trigger thumbnail creation and resizing for specific images.

If you're comfortable with PHP and Piwigo's plugin architecture, you can write or tweak plugins to provide more fine-grained control.

If you want more detailed steps on setting up this functionality or exploring plugins that can help, let me know! I'd be happy to walk you through it.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2025 · Contact