# Multiple Thumbnail Generation

**URL:** <https://forum.oxid-esales.com/t/multiple-thumbnail-generation/54663>\
**Category:** English forums\
**Tags:** dev-talk\
**Created:** [January 3, 2012, 11:45am UTC](https://forum.oxid-esales.com/t/multiple-thumbnail-generation/54663 "2012-01-03T11:45:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahtasham82](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/ahtasham82/32/444_2.png) [@ahtasham82](https://forum.oxid-esales.com/u/ahtasham82)\
**Post date:** [January 3, 2012, 11:45am UTC](https://forum.oxid-esales.com/t/multiple-thumbnail-generation/54663/1 "2012-01-03T11:45:24Z")

</div>

Hi Guys,

First of all, a very happy new year.

Secondly, I am thinking of some how to be able to generate multiple thumbnails each with different size.

So right now I am using oxpic1 and oxpic2 images to display them on product list page. I need both of the pics because at first I show the oxpic1 and onmouseover I show the oxpic2.

Now the problem is that the size of the oxpics in the admin area is 375_500 which is correct as I need this size on the detail page. But I need somehow to be able to generate smaller images from oxpic1 and oxpic2 with size like 180_240 which is basically my size on the listing page. (right now images are loaded with size of 375_500 on listing page and then with css they are displayed smaller to 180_240)

I need this done because size of my listing page is too large it takes to much time to load so many large images. I need to load the page directly with 180\*240 resolution images.

I tried overloading the following function

public function getPictureUrl( $iIndex = 1, $iSize=array())  
{  
if ( $iIndex ) {  
$sImgName = false;  
if ( !$this-\>\_isFieldEmpty( “oxarticles\_\_oxpic”.$iIndex ) ) {  
$sImgName = basename( $this-\>{“oxarticles\_\_oxpic$iIndex”}-\>value );  
}

```
if(count($iSize) &gt; 0)$sSize = $iSize; else $sSize = $this-&gt;getConfig()-&gt;getConfigParam( 'aDetailImageSizes' );
	
return oxPictureHandler::getInstance()-&gt;getProductPicUrl( "product/{$iIndex}/", $sImgName, $sSize, 'oxpic'.$iIndex );

```

}  
}

I added the second parameter of $iSize. now it generates the correct URL with the new size and so but the image is never generated with the new size and it says image not found.

[http://localhost.bb/out/pictures/generated/product/1/184\_245\_75/TK\_401WX\_DBR\_ANGLE.jpg](http://localhost.bb/out/pictures/generated/product/1/184_245_75/TK_401WX_DBR_ANGLE.jpg)

so any idea guys…

Looking forward to a quick response 🙂

---

<div class="post-metadata">

**Author:** ![system](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/system/32/4245_2.png) [@system](https://forum.oxid-esales.com/u/system)\
**Post date:** [July 13, 2026, 7:39pm UTC](https://forum.oxid-esales.com/t/multiple-thumbnail-generation/54663/2 "2026-07-13T19:39:02Z")

</div>

Closed on July 13, 2026, 7:39pm UTC


