Title: Image Resizing/Thumbnail Generation Plugin
Last modified: August 18, 2016

---

# Image Resizing/Thumbnail Generation Plugin

 *  [nathanmo](https://wordpress.org/support/users/nathanmo/)
 * (@nathanmo)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/image-resizingthumbnail-generation-plugin/)
 * Here is a plugin that I’ve been working on. It powers my photo gallery and it
   automatically creates thumbnails for images with IMG tags WIDTH’s and HEIGHT’s
   that are smaller than the actual image’s height and width.
 * [http://www.nathanm.com/index.php/code/](http://www.nathanm.com/index.php/code/)

Viewing 15 replies - 1 through 15 (of 52 total)

1 [2](https://wordpress.org/support/topic/image-resizingthumbnail-generation-plugin/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/image-resizingthumbnail-generation-plugin/page/3/?output_format=md)
[4](https://wordpress.org/support/topic/image-resizingthumbnail-generation-plugin/page/4/?output_format=md)
[→](https://wordpress.org/support/topic/image-resizingthumbnail-generation-plugin/page/2/?output_format=md)

 *  [Orin](https://wordpress.org/support/users/orin/)
 * (@orin)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/image-resizingthumbnail-generation-plugin/#post-322620)
 * Well that sounds kinda neat… a way to choose the thumbnails on a case by case(
   or page by page) basis if you want. The wording threw me a little, though. Let
   it be known: this plugin actually creates **_new_** images and caches them, and
   doesn’t just alter the sizing values or existing ones. Gotcha.
 * Question: does it take the sizing values directly from the `<img>` tag, or if
   I had a table with, say `height="120px"` would that work?
 *  Thread Starter [nathanmo](https://wordpress.org/support/users/nathanmo/)
 * (@nathanmo)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/image-resizingthumbnail-generation-plugin/#post-322735)
 * It takes the sizing values from the <img> tag.
 * Specifically width and height. If you have only width or only height, it will
   resize the width or height to the value you specify and the other attribute will
   be resized in proportion.
 * It also allows for a size attribute..
 * <img src=’myphoto.jpg’ size=’70%’>
 * And this would create a new image that is 70% of the size of the original. And
   links the new image into url code automatically.
 *  [carbontwelve](https://wordpress.org/support/users/carbontwelve/)
 * (@carbontwelve)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/image-resizingthumbnail-generation-plugin/#post-322983)
 * i just want the image gallery the rest of the functionality is useless to me…
 *  [carbontwelve](https://wordpress.org/support/users/carbontwelve/)
 * (@carbontwelve)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/image-resizingthumbnail-generation-plugin/#post-322984)
 * plus the gallery doesnt accept the [http://www.website.com/photography/galleryname/photoname](http://www.website.com/photography/galleryname/photoname)
   arcetecture and just seems to try and go to [http://www.website.com/?gallery_id=1](http://www.website.com/?gallery_id=1)
   even when im calling from [http://www.website.com/photography](http://www.website.com/photography)
   and where it should revert to [http://www.website.com/photography/?gallery_id=1](http://www.website.com/photography/?gallery_id=1)
   at the very least. It would be better if it went for [http://www.website.com/photography/1/](http://www.website.com/photography/1/)
   at the very least.
 * I shall try to fix the other issues im facing appart from the /photography/galleryname/
   imagename as im not sure how to work that. I shall also probably include some
   form of admin panel for changing the values so editing the php file isnt needed.
 * I really like the plugin, if the above where fixed and it didnt mess up the css
   of all my pages by putting boxes around all my images |: bad naughty plugin, 
   then this would be perfect.
 *  [carbontwelve](https://wordpress.org/support/users/carbontwelve/)
 * (@carbontwelve)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/image-resizingthumbnail-generation-plugin/#post-322985)
 * Bugs: “.$_SERVER[‘SERVER_NAME’].$_SERVER[‘ORIG_PATH_INFO’].” Wouldnt work on 
   my server for the Plugin_UrlBuild function. I had to enter my url manualy. Has
   this been written for php5?
 * Found out how to turn off the thing that phased all my pages and put borders 
   around my smiles by turning off the thing commenting out last line.
    //add_filter(‘
   the_content’, ‘Plugin_Image’); Because I dont need it…
 *  [robotdan](https://wordpress.org/support/users/robotdan/)
 * (@robotdan)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/image-resizingthumbnail-generation-plugin/#post-322987)
 * I’m getting the following error appearing in the post:
 * Warning: filesize() [function.filesize]: stat failed
 * What CHMOD value should the folders be set to?
 *  [robotdan](https://wordpress.org/support/users/robotdan/)
 * (@robotdan)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/image-resizingthumbnail-generation-plugin/#post-322990)
 * OK, here’s some more feedback on a possible bug. The plugin seems to work when
   specifying a smaller width (width=”100″), but doesn’t work for the ‘reduce originals’
   function. I’ve created the folders (777) for the photos and cache, and changed
   these values in the plugin:
 * `$ReduceOriginals = TRUE;
    $ReduceOriginalsWidth = 450;
 * Here’s the errors that appear in the post if the image is larger than 450 pixels:
 * `Warning: filesize() [function.filesize]: stat failed for http://www.mydomainname.
   com/wp-content/uploads/2006/01/largetest.jpg in /home/root/public_html/wp-content/
   plugins/nathan-gallery.php on line 464`
 * Warning: imagejpeg() [function.imagejpeg]: Unable to open '[http://www.mydomainname.com/wp-content/uploads/2006/01/largetest.jpg.tmp&#39](http://www.mydomainname.com/wp-content/uploads/2006/01/largetest.jpg.tmp&#39);
   for writing in /home/root/public_html/wp-content/plugins/nathan-gallery.php on
   line 537
 * Warning: unlink() [function.unlink]: HTTP does not allow unlinking in /home/root/
   public_html/wp-content/plugins/nathan-gallery.php on line 475
 * Warning: copy([http://www.mydomainname.com/wp-content/uploads/2006/01/largetest.jpg.tmp](http://www.mydomainname.com/wp-content/uploads/2006/01/largetest.jpg.tmp))[
   function.copy]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not 
   Found in /home/root/public_html/wp-content/plugins/nathan-gallery.php on line
   476
 * Warning: unlink() [function.unlink]: HTTP does not allow unlinking in /home/root/
   public_html/wp-content/plugins/nathan-gallery.php on line 477
 * Here’s the errors that appear in the post if the image is smaller than 450 pixels:
 * `Warning: filesize() [function.filesize]: stat failed for http://www.mydomainname.
   com/wp-content/uploads/2006/01/smalltest.jpg in /home/root/public_html/wp-content/
   plugins/nathan-gallery.php on line 464`
 *  Thread Starter [nathanmo](https://wordpress.org/support/users/nathanmo/)
 * (@nathanmo)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/image-resizingthumbnail-generation-plugin/#post-322994)
 * These issues should be all resolved in the latest version 0.1.4. It has an admin
   panel now, etc and you can change the styling there etc.
 *  [brayabbitt](https://wordpress.org/support/users/brayabbitt/)
 * (@brayabbitt)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/image-resizingthumbnail-generation-plugin/#post-322996)
 * After setting up PixGallery, I can see the thumbnails for the folders, but am
   not able to drill down any further.
 * The gallery is located at: [http://brayabbitt.com/pictures/](http://brayabbitt.com/pictures/)
 * Any thoughts?
 *  [greenartist](https://wordpress.org/support/users/greenartist/)
 * (@greenartist)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/image-resizingthumbnail-generation-plugin/#post-323008)
 * Hiya,
 * I uploaded this cool plugin and when I actived it, the error came out:
 * `Warning: array_keys(): The first argument should be an array in /hsphere/local/
   home/greenartist/xxxxxxxxxxx.com/bog/wp-content/plugins/pixgallery.php on line
   876`
 * Warning: Cannot modify header information - headers already sent by (output started
   at /hsphere/local/home/greenartist/xxxxxxxxxxx.com/bog/wp-content/plugins/pixgallery.
   php:876) in /hsphere/local/home/greenartist/xxxxxxxxxxx.com/bog/wp-admin/plugins.
   php on line 16
 * Any idea why it couldn’t go any further after I activated the plugin? I looked
   up plugins.php and the “line 16” looks fine. Here it is:
 * ` header('Location: plugins.php?activate=true');`
 * Help?
 *  [greenartist](https://wordpress.org/support/users/greenartist/)
 * (@greenartist)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/image-resizingthumbnail-generation-plugin/#post-323009)
 * Oh by the way, I’m using WP 2.0.1..
 *  [jfowler](https://wordpress.org/support/users/jfowler/)
 * (@jfowler)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/image-resizingthumbnail-generation-plugin/#post-323012)
 * I am getting the same thing as Greenartist.
 *  [brduke](https://wordpress.org/support/users/brduke/)
 * (@brduke)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/image-resizingthumbnail-generation-plugin/#post-323014)
 * I’m also getting the same error as green artist:
 * Warning: array_keys() [function.array-keys]: The first argument should be an 
   array in /home/…../wp-content/plugins/pixgallery.php on line 876
 *  [clunybrown](https://wordpress.org/support/users/clunybrown/)
 * (@clunybrown)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/image-resizingthumbnail-generation-plugin/#post-323016)
 * Hi,
 * I’m using WordPress 2.0.1. I’ve installed the plugin and added it to a page and
   I’m getting the following error message:
 * `Error: Photos path is invalid!`
    `Error: Photos path should contain subfolders
   to store each photo gallery!` `Error: Not a valid directory (/home/clunybr/public_html/
   images/photos/)`
 * `Warning: Division by zero in /home/clunybr/public_html/wp-content/plugins/pixgallery
   Folder/pixgallery.php on line 205`
 * `Warning: Division by zero in /home/clunybr/public_html/wp-content/plugins/pixgallery
   Folder/pixgallery.php on line 206`
 * `Warning: Division by zero in /home/clunybr/public_html/wp-content/plugins/pixgallery
   Folder/pixgallery.php on line 259`
 * I can see that the path contains an incorrect backslash, but I can’t figure out
   where to fix it.
 * Any help would be appreciated.
 * Edited: I don’t know why, but the incorrect backslash disappeared when I posted
   my question. It was in the line:
 * `Error: Not a valid directory (/home/clunybr/public_html`\`/images/photos/)`
 * I’ve surrounded it with backticks, maybe it’ll show in this one.
 *  [jwurster](https://wordpress.org/support/users/jwurster/)
 * (@jwurster)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/image-resizingthumbnail-generation-plugin/#post-323017)
 * This backslash has also occurred with me. In addition, I had to delete the entire
   plugin because my error log file was getting extremely large with divide by zero
   errors.
    By the way, I’m using wp 1.5.2.

Viewing 15 replies - 1 through 15 (of 52 total)

1 [2](https://wordpress.org/support/topic/image-resizingthumbnail-generation-plugin/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/image-resizingthumbnail-generation-plugin/page/3/?output_format=md)
[4](https://wordpress.org/support/topic/image-resizingthumbnail-generation-plugin/page/4/?output_format=md)
[→](https://wordpress.org/support/topic/image-resizingthumbnail-generation-plugin/page/2/?output_format=md)

The topic ‘Image Resizing/Thumbnail Generation Plugin’ is closed to new replies.

## Tags

 * [border](https://wordpress.org/support/topic-tag/border/)
 * [gallery](https://wordpress.org/support/topic-tag/gallery/)
 * [photo](https://wordpress.org/support/topic-tag/photo/)
 * [resize](https://wordpress.org/support/topic-tag/resize/)
 * [thumbnail](https://wordpress.org/support/topic-tag/thumbnail/)

 * 52 replies
 * 30 participants
 * Last reply from: [harknell](https://wordpress.org/support/users/harknell/)
 * Last activity: [19 years, 4 months ago](https://wordpress.org/support/topic/image-resizingthumbnail-generation-plugin/page/4/#post-323100)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
