In the tool "import" of the Image module is imported 50 images at a time.
How can I reduce the number of images that are imported from a single time from 50 to 40?
(I'm having problems with "access denied" in the batch process)

#6 993042-3.image_.image-import-page-size.patch1.38 KBjoachim
PASSED: [[SimpleTest]]: [MySQL] 253 pass(es). View
#2 image.import-page-size.2.patch1.36 KBsun
PASSED: [[SimpleTest]]: [MySQL] 253 pass(es). View
Members fund testing for the Drupal project. Drupal Association Learn more


joachim’s picture

You can use devel module to set the image_import_page_size variable.

(We should maybe add an option in the admin UI for that ... if you have time to provide a patch, please change this to a feature request.)

sun’s picture

Assigned: BobWizley » Unassigned
Status: Active » Needs review
1.36 KB
PASSED: [[SimpleTest]]: [MySQL] 253 pass(es). View

Nothing easier than that.

joachim’s picture

Category: support » feature
Status: Needs review » Needs work
+++ contrib/image_import/	21 Dec 2010 02:01:10 -0000
@@ -13,6 +13,15 @@ function image_import_admin_settings() {
+    // Higher values should use settings.php.

Not sure what you mean by this comment.

Other than that looks good.

Powered by Dreditor.

sun’s picture

Status: Needs work » Reviewed & tested by the community

The value is currently "hard-coded" to 50, and the maximum number of items being displayed affects the maximum that can be imported in one fell swoop. Thus, #maxlength of 3 effectively limits the UI import to a maximum of 999 images.

Let's tweak that comment prior to commit. I'm happy with anything (even with dropping it entirely).

joachim’s picture

It's definitely worth explaining.

'Limits this value to a 3-digit number, hence 999 images. Higher values should use settings.php.'

If that fits in 80 chars ;)

joachim’s picture

Status: Reviewed & tested by the community » Needs review
1.38 KB
PASSED: [[SimpleTest]]: [MySQL] 253 pass(es). View

How about this?

joachim’s picture

Title: Importing images in a shared server » change number of imported images

Better title.

sun’s picture

Status: Needs review » Fixed

Thanks for reporting, reviewing, and testing! Committed to D6.

A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.