Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 917757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:15:38+00:00 2026-05-15T18:15:38+00:00

Warning: I don’t have much experience with CodeIgniter and I am updating a site

  • 0

Warning: I don’t have much experience with CodeIgniter and I am updating a site originally created by another developer.

For some reason the CodeIgniter image class is creating thumbnails with a black pixel in the top left corner. Here is an example:

alt text http://jnjnjn.com/images/codeigniter_bad_thumb.jpg

This only seems to happen in production (this site is being hosted on a super lame shared host). Thumbnails are created just fine on my OS X dev machine and my Ubuntu machine on Slicehost.

The code is pretty boilerplate, and from what I can tell the image library doesn’t have a whole lot of options to screw up.

The options look like this:

$this->Image_Resize['image_library'] = 'gd2';
$this->Image_Resize['thumb_marker'] = 'thumb_';
$this->Image_Resize['create_thumb'] = TRUE;
$this->Image_Resize['maintain_ratio'] = TRUE;
$this->Image_Resize['width'] = 200;
$this->Image_Resize['height'] = 200;

And then the image is processed like this:

$this->Image_Resize['source_image'] = 'images/news/'.$image['file_name'];
$this->image_lib->initialize($this->Image_Resize);
$this->image_lib->resize();

Has anyone run into this issue before? Google & SO searches aren’t getting me anywhere. These pixels are driving me nuts.

Update: As I was afraid, this didn’t have anything to do with CodeIgniter. Something is screwy with the host’s GD library and they don’t support anything else. It’s just weird that I can’t find anyone else in the world who’s had this problem.

Anyway my advice is to never, ever, ever use Doteasy. They are a nightmare.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T18:15:39+00:00Added an answer on May 15, 2026 at 6:15 pm

    If it’s the host that’s causing it, maybe it’s their image library that’s having problems. The codeigniter Image Manipulation class is really just abstracted above that level, so you can actually choose what image library to use. Find out what ones are available from your host and maybe try a different one and see if the results are the same. Possible options for the [‘image_library’] are:

    1. GD
    2. GD2
    3. ImageMagick
    4. NetPBM

    Image Manipulation Class – Codeigniter Documentation

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting Reaching end of non-void function warning, but don't have anything else to
Pre-warning : There are some other questions similar to this but don't quite answer
I don't understand why the following code generates a warning. interface Generic<T> { }
My iOS app is randomly crashing but I don't get any warning/error in the
trying to start Rails server and getting a warning I don't understand. Anyone know
Is it possible to suppress this specific warning by using @SuppressWarnings(???) ? (I don't
I don't know why my site give me this error. This is the list
WARNING: Complete newbie to RoR and Ruby alert! * I have a login method
Hey Guys, Anyone have any idea why I'm getting the warning pictured in the
I am getting a warning from the Xcode 3.2.5 static analyser that I don't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.