Title: [Plugin: Really Simple CAPTCHA] background transparent for image
Last modified: August 19, 2016

---

# [Plugin: Really Simple CAPTCHA] background transparent for image

 *  [ka81](https://wordpress.org/support/users/ka81/)
 * (@ka81)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/plugin-really-simple-captcha-background-transparent-for-image/)
 * Please, tell me how to assign background:transparent for captcha image??
 * [http://wordpress.org/extend/plugins/really-simple-captcha/](http://wordpress.org/extend/plugins/really-simple-captcha/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/plugin-really-simple-captcha-background-transparent-for-image/#post-1299867)
 * I think it is not possible to make the background transparent. But it sounds 
   interesting.
 *  Thread Starter [ka81](https://wordpress.org/support/users/ka81/)
 * (@ka81)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/plugin-really-simple-captcha-background-transparent-for-image/#post-1299910)
 * well, the generated image with text – is PNG, so i guess transparent may be possible
   somehow?…
 *  [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/plugin-really-simple-captcha-background-transparent-for-image/#post-1299913)
 * yes, maybe so if you can edit plugin’s codes. please tell us when you succeed.
 *  [scuffedshoes](https://wordpress.org/support/users/scuffedshoes/)
 * (@scuffedshoes)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/plugin-really-simple-captcha-background-transparent-for-image/#post-1300166)
 * I wanted to do this as well. A quick google search of gd commands got me to this
   page: [http://www.php.net/imagecolortransparent](http://www.php.net/imagecolortransparent)
 * In _really-simple-captcha.php_ add the command
    `imagecolortransparent( $im, 
   $bg );` after line 95 so the block looks like this
 *     ```
       if ( $im = imagecreatetruecolor( $this->img_size[0], $this->img_size[1] ) ) {
       $bg = imagecolorallocate( $im, $this->bg[0], $this->bg[1], $this->bg[2] );
       $fg = imagecolorallocate( $im, $this->fg[0], $this->fg[1], $this->fg[2] );
   
       /* Added to make png background transparent */
       imagecolortransparent( $im, $bg );
   
       imagefill( $im, 0, 0, $bg );
       ```
   
 * Did the trick for me.
    Then style the box to use a patterned background and you’ve
   got one of those annoying-to-read captcha boxes. Keep in mind, the transparent
   color is indexed, so make sure it’s not the same as the foreground color. If 
   you want white lettering make the background color something other than white.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: Really Simple CAPTCHA] background transparent for image’ is 
closed to new replies.

 * 4 replies
 * 3 participants
 * Last reply from: [scuffedshoes](https://wordpress.org/support/users/scuffedshoes/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/plugin-really-simple-captcha-background-transparent-for-image/#post-1300166)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
