I have made sure already that the image does exist. In my case, the image is on my server, but it will not always be this case. I’d like this to work with all images on any server.
The script has been updated to support remote images. Should work the exact same, just use a remote file URL rather than a relative URL in the SRC variable. Let me know if you have any questions.
breakdancebabyOctober 31, 2007 at 9:34 pm | Permalink | Reply
But those scripts do have file caching, is there anyone who knows how to add that to this script? I’ve tried combining some parts but not succesfully yet, so far…
Great tip, this is exactly what I was looking for! I just wanted to pull one category to the top of the list that fell in the middle in alpha sort and this tip worked perfectly.
Thanks for posting, I have learned MySQL through a very incremental approach and this is a great addition to my arsenal.
Have not tested it yet, but looks very nice. Just one question: What about at cache for the tumbnails? Is it just to change sometning in the code, make a folder (777) and it would work?
You can actually go straight to the camcorder mode if when originally pressing the camera button to start up the camera you hold it down a little longer. A quick button press goes to camera, a longer hold and release goes to camcorder.
Joe CoolestAugust 4, 2009 at 5:58 pm | Permalink | Reply
I’m attempting to use this class to bridge the gaps in my OOP PHP knowledge. OOP is quite a challenge for me at the moment.
For the life of me I can’t figure out how to implement a mysql_data_seek function into your class.
function seek($index) { return mysql_data_seek( $this->????, $index ); }
I thought I could easily extend your class with a few features to allow me to seek to first and last result of a query, but I am completely stumped at this point. I’m not giving up and don’t really want the functions handed over, but I’d love a few pointers that might help me fill in the gaps in my knowledge regarding what I would need to pass to mysql_data_seek.
I look forward to becoming a regular follower of your blog. A few of the posts that I have investigated thus far have been extremely helpful. Thank you.
Saw your tweet. Hadn’t heard of phpDesigner 7 before, so it was interesting to hear about it. I’m a huge codeigniter fan, my personal site runs on it. I’ve enjoyed using Aptana, Eclipse, and Netbeans – so I’ll have to check out phpDesigner if you’ve chosen phpDesigner over them!
Thanks.
The past few months I have noticed that my phone has randomly been cutting off. I’d go to look at the clock on the outer screen and it’s black. I thought it had something to do with my recently downloaded Hearts & Spades application, but it turns out they have updated the Phones OS and it is available at your local Verizon Wireless tech shop. The upgrade is Version 03 and my version was 02. To find out what version you have, you can go to: Menu > Settings & Tools Menu > Phone Info > SW/HW Version. Your SW Version will read something like: VX920V02.
Verizon upgraded the phone for me at no charge since it’s still under warranty. Go get that upgrade if the phone power off problem is bothering you. They did not mention any other fixes in the release, just the one.
Joe, take a look at the recent update. I added SEEK as part of the class. Unfortunately I wasn’t able to test it. If you have any issues, just let me know. I don’t use it much, so hopefully my addition is sufficient. Also note the note above about returning an object instead of an array. Thanks for reading!
Thanks for the post. I am trying to decide on the maroon verses the slate blue color. I like the look of the slate better and the graphics show up better. I am upgrading to this phone only because of the texting features and think the maroon keyboard is easier to read than the slate blue’s. Yes, blue’s gaming keys’ color is distracting to me also. I’m also thinking the maroon color won’t show scratches as the blue phone would.
AlexanderNovember 18, 2009 at 7:55 am | Permalink | Reply
Dear Brian, just a question since you are (and I am not, not yet) a CodeIgnitor user. I noticed that there is also an image maniputalor class in CI. Can that not do what your script above does?
Btw, nice that you also discovered PHPDesigner 🙂
Yes, Alexander. This post was written LONG before I discovered CI. CI rocks, although I actually haven’t messed with CI’s Image Manipulation Library very much. (not at all actually) You should give it a try!
Yes, I meant to post the update. I had Verizon give me a new one which had V06 on it as well. They like to update that software without telling people. So nice of them.
I dispise the phishing emails these people seem to get more determined by the day I recieve 2 or 3 every single day and report them to phishtrackers a web site I stumbled upon that lets you submit them anonymously.
Are you sure the Netbeans PHP installer asked for a JDK? I thought it just said “Java runtime”. There is no reason for you to install the whole NetBeans + JDK bundle (for *Java* developers), and then add the PHP plugin. At least not if all you work with is PHP.
And the Sunburst theme seems to be working for everybody else, or anyway, nobody has complained in Zach’s blog since Netbeans 6.7, and it works for me now in 6.8 and 6.9…
I’m not so sure it was the theme that’s the problem, but more like the fact that I restarted while NetBeans was “doing something” in the background.
As for JDK Requirement, I uninstalled everything I installed for this, then ran “netbeans-6.8-ml-php-windows.exe” which was downloaded from the NetBeans website. This is the dialog when I try to run:
I kicked myself for not taking the screen shot of the error I got that crashed the whole program on step 13 of “My First Project”. I was able to somewhat reproduce this by retracing my steps. It wasn’t as extreme as before, but here’s the screenshot:
Thanks, I was just looking for this. About to write it myself, and did one last google search, and boom.. you wrote it for me. Works like a champ.
I will mention, in my case, I had to catch real 404’s in the function in the else statement and call show_404() if the input isn’t valid. (I’m using this to call a search if there’s no controller function for the exact URL).
[…] Now I’m starting to get mad. The article states that HTC told that user to perform a Hard Reset. I have already been told this once before by HTC over another issue that seems to have just “gone away”… (I can’t remember the exact error but it was something to the effect of “The process com.htc.bg has stopped unexpectedly.” and continuously kept popping up randomly and didn’t seem to affect any functionality whatsoever. I managed to dig up the ticket to HTC). […]
AbdraktEntertainmentApril 19, 2011 at 11:17 am | Permalink
I’ve had this same issue for about a week now. I signed out of facebook for HTC sence and the notification went away. Signed back in to facebook for htc and its back again. Keep in mind I use facebook for Android as my primary facebook app, I only use facebook for HTC to keep my contacts sync’d and updated. Trying to figure out a work around for this myself. Just thought someone should know.
Mine does the same and it’s driving me in insane. It closes everything down and I have to start again. Not only does it do that, occasionally it will decided to delete my entire Inbox, even my locked ones. The phone doesn’t tell me the memory is full but does it anyway. I’ve lost loads of ‘locked’ images due to this.
Thanks for the post – this is one of the few times I’ve seen the issue discussed.
Unfortunately, I tried the factory reset twice and still have the same error occurring. I haven’t found any other information on the Internet regarding this problem and will probably have to put up with it until upgrading the phone.
BeverlySeptember 27, 2011 at 10:16 pm | Permalink | Reply
What’s funny about this is the fact that my Incredible had all of a sudden force close everything literally! Half of the time, I couldn’t answer a call or even make a call, due to everything force closing. I did a reset to the phone. I had did a backup so I would not lose my numbers. After the reset, I still get the error that you discuss. I never had that error until I did the reset. My apps and services that were loaded before the reset were all closing. I do seriously believe that I had to do the initial reset due to a virus. Of course, after the fact that I did reset the phone, my phone still has a trace on it. I did have Lookout Security on my phone and even though it scanned every time with no viruses, I still was attacked and couldn’t even begin to describe how…
Donnie LugnutOctober 20, 2011 at 9:47 pm | Permalink
There is now a hotfix available.
Go to settings and select “Applications”
In the “Unknown Sources” section, turn on the ability to “Allow installation of non-Market applications”
Exit your settings and open the Internet browser.
Enter “dl3.htc.com/misc/inc8049.apk”, this will download a hotfix.
If it didn’t start the install automatically, go to your download folder and Open the file “inc8049”.
Allow it to install.
Ok, who are you and where did you find that? Why didn’t HTC tell me about it? I was practically begging for it! Will this work on the latest Incredible update (Android 2.3.4)?
Donnie LugnutOctober 24, 2011 at 1:37 pm | Permalink
I am runnig Android version 2.3.4.
I found the fix on the HTC Forums. Somebody else actually talked to HTC support and posted what they were told. (“http://community.htc.com/na/htc-forums/android/f/91/t/8475.aspx?PageIndex=4” Read the post from “MitchyBoy.”) I was also getting frustrated. I was uninstalling more and more apps, constantly clearing my cached data, all that. Finally, I tried the hotfix. It really works. The fix was developed to correct the problem of people not receiving text messages. I am guessing the low memory error and the not receiving text messages are caused by the same problem. Since then, I’ve been reinstalling applications that I used before the memory problem. Apparently not everybody at HTC is even aware of the fix, so I am going to the various forums and posting the solution. I didn’t try this, but maybe if you call HTC and say your phone is no longer receiving text messages instead of the low memory message, they might direct you to the hotfix.
David TerranceOctober 27, 2011 at 6:11 am | Permalink
Ah ha!!! Tried everything mentioned in this post and many others and NOTHING! has worked, even the hotfix that sounded like the solution for many. However, after a night of trying almost everything I could think of I wound up discovering something that fixed it for me. I remembered that in the past, my phone has occasionally deleted all of my txt messages, without a prompt, even though my setting are set to “no limit” on txt messages. In the past this pissed me off, but now I may no why. My phone hadn’t done this in a while so I opened my txt inbox and realized I had many large conversations, one of which containing 450+ txts. I deleted the conversation, which took about 30 seconds, but the “low disk space” icon disappeared immediately. Perhaps this will work for others as solutions appear to differ from phone to phone…
I have had this error on and off the entire time I have had this phone. I get the “low disk space” error with over 500MB internal free, and it gets to the point where it refuses to even open a browser because it thinks it has no space. I’ve missed emails, texts, and calendar alerts because of this. This is the worst smartphone I have ever had. I hate it with the burning hatred of a thousand suns. I was so excited when I first got this phone, but it has been such a horrible experience (with no helpful information coming from the vendor) that I will never, ever buy another HTC product. No other phone has this issue, even the Incredible 2 one of my family member’s has doesn’t have this problem, so there is a fix for it out there, they just won’t (or can’t) give it to us.
Never, ever, ever again will I buy another HTC product.
First:
Home Screen>Menu>Accounts&Sync> turn off any syncs you don’t want (ex: News).
If you choose to retain News, then at least go into it and delete unwanted feeds.
If Facebook is listed, go into it and delete preferences
Take note of which item are now set to sync.
Exit Accounts&Sync.
Finally:
Menu>Applications>ManageApplications>All> Find each application you are syncing and delete caches, and possibly “clear data”. You may have to re-enter accounts if you clear (Ex: mail/gmail)
Great stuff here! I thought I post here just to say I like the Halloween hack you got going on with your site.
Richard PaschalDecember 21, 2019 at 1:16 pm | Permalink | Reply
A person could detect the light and the heat of that light if they looked straight down the hilt and activated the lightsaber….which would end up through their eye. Lol. Pretty interesting stuff.
You need to change the filename to download from image.php to another extension like image.phps in order for people to download…
I can’t copy and paste the actual text above because the text because all crumpled up.
I changed the code highlighter plugin to something a little better. You should be able to copy it now.
I have made sure already that the image does exist. In my case, the image is on my server, but it will not always be this case. I’d like this to work with all images on any server.
Thanks.
The script has been updated to support remote images. Should work the exact same, just use a remote file URL rather than a relative URL in the SRC variable. Let me know if you have any questions.
Where, oh where did you get a DG20?
Great costuem, btw.
My brother got it for Christmas last year. I think they got it from eBay. It’s a pretty neat guitar. I don’t play much at all, but he does.
Fantastic fantastic costume… me and my boyfriend went as Bret and Jemaine. Way to take it to the next level!
http://hollieg.com/blog2/archive/2007/11/11/its-business-its-business-time.aspx
Hi,
great script, thanks for this!!!
need a feature, crop image
Thanks!
Great script! Especially the feature to resize remote images.
Haven’t seen that in the other scripts I’ve looked at (http://www.darrenhoyt.com/2008/04/02/timthumb-php-script-released/, http://shiftingpixel.com/2008/03/03/smart-image-resizer/).
But those scripts do have file caching, is there anyone who knows how to add that to this script? I’ve tried combining some parts but not succesfully yet, so far…
[…] https://briandichiara.com/image-thumbnail-creator/ […]
Great tip, this is exactly what I was looking for! I just wanted to pull one category to the top of the list that fell in the middle in alpha sort and this tip worked perfectly.
Thanks for posting, I have learned MySQL through a very incremental approach and this is a great addition to my arsenal.
Regards,
Bryan
Thank you, thank you, thank you for modifying this script. It works perfectly.
Genius. Thanks.
Looks very nice Brian!
Have not tested it yet, but looks very nice. Just one question: What about at cache for the tumbnails? Is it just to change sometning in the code, make a folder (777) and it would work?
Why cache you said? Slow remote server…
Thanks:)
You can actually go straight to the camcorder mode if when originally pressing the camera button to start up the camera you hold it down a little longer. A quick button press goes to camera, a longer hold and release goes to camcorder.
I’m attempting to use this class to bridge the gaps in my OOP PHP knowledge. OOP is quite a challenge for me at the moment.
For the life of me I can’t figure out how to implement a mysql_data_seek function into your class.
function seek($index) { return mysql_data_seek( $this->????, $index ); }
I thought I could easily extend your class with a few features to allow me to seek to first and last result of a query, but I am completely stumped at this point. I’m not giving up and don’t really want the functions handed over, but I’d love a few pointers that might help me fill in the gaps in my knowledge regarding what I would need to pass to mysql_data_seek.
I look forward to becoming a regular follower of your blog. A few of the posts that I have investigated thus far have been extremely helpful. Thank you.
Saw your tweet. Hadn’t heard of phpDesigner 7 before, so it was interesting to hear about it. I’m a huge codeigniter fan, my personal site runs on it. I’ve enjoyed using Aptana, Eclipse, and Netbeans – so I’ll have to check out phpDesigner if you’ve chosen phpDesigner over them!
Thanks.
PHPDesigner is highly recommended. I have been using it for the past couple years and can’t live without it when it comes to programming php.
UPDATE NOTICE!!!
The past few months I have noticed that my phone has randomly been cutting off. I’d go to look at the clock on the outer screen and it’s black. I thought it had something to do with my recently downloaded Hearts & Spades application, but it turns out they have updated the Phones OS and it is available at your local Verizon Wireless tech shop. The upgrade is Version 03 and my version was 02. To find out what version you have, you can go to: Menu > Settings & Tools Menu > Phone Info > SW/HW Version. Your SW Version will read something like: VX920V02.
Verizon upgraded the phone for me at no charge since it’s still under warranty. Go get that upgrade if the phone power off problem is bothering you. They did not mention any other fixes in the release, just the one.
Joe, take a look at the recent update. I added SEEK as part of the class. Unfortunately I wasn’t able to test it. If you have any issues, just let me know. I don’t use it much, so hopefully my addition is sufficient. Also note the note above about returning an object instead of an array. Thanks for reading!
You have many interesting post. I think i’ll have a good look for your post. Nice to know you 🙂
Thanks for the post. I am trying to decide on the maroon verses the slate blue color. I like the look of the slate better and the graphics show up better. I am upgrading to this phone only because of the texting features and think the maroon keyboard is easier to read than the slate blue’s. Yes, blue’s gaming keys’ color is distracting to me also. I’m also thinking the maroon color won’t show scratches as the blue phone would.
Dear Brian, just a question since you are (and I am not, not yet) a CodeIgnitor user. I noticed that there is also an image maniputalor class in CI. Can that not do what your script above does?
Btw, nice that you also discovered PHPDesigner 🙂
Yes, Alexander. This post was written LONG before I discovered CI. CI rocks, although I actually haven’t messed with CI’s Image Manipulation Library very much. (not at all actually) You should give it a try!
FYI, my new phone is on V06 of firmware (I had V2 and the shutting off problem)
Yes, I meant to post the update. I had Verizon give me a new one which had V06 on it as well. They like to update that software without telling people. So nice of them.
Try NetBeans for php.
NetBeans? Ack! I haven’t used that since a LONG time ago and thanks to your review, I won’t be wasting my time anytime soon.
Thanks for the heads up! 🙂
Kevin, I took your advice. Here are the results:
https://briandichiara.com/my-experience-with-netbeans/
I dispise the phishing emails these people seem to get more determined by the day I recieve 2 or 3 every single day and report them to phishtrackers a web site I stumbled upon that lets you submit them anonymously.
Are you sure the Netbeans PHP installer asked for a JDK? I thought it just said “Java runtime”. There is no reason for you to install the whole NetBeans + JDK bundle (for *Java* developers), and then add the PHP plugin. At least not if all you work with is PHP.
And the Sunburst theme seems to be working for everybody else, or anyway, nobody has complained in Zach’s blog since Netbeans 6.7, and it works for me now in 6.8 and 6.9…
I’m not so sure it was the theme that’s the problem, but more like the fact that I restarted while NetBeans was “doing something” in the background.
As for JDK Requirement, I uninstalled everything I installed for this, then ran “netbeans-6.8-ml-php-windows.exe” which was downloaded from the NetBeans website. This is the dialog when I try to run:
I kicked myself for not taking the screen shot of the error I got that crashed the whole program on step 13 of “My First Project”. I was able to somewhat reproduce this by retracing my steps. It wasn’t as extreme as before, but here’s the screenshot:
I just installed NetBeans,CodeIgniter,WAMP etc. on a Vista machine and it worked out of the box no problems.
The code completion/intellisense is awesome.
I will also checkout phpdesigner though.
Nice one!
Thanks man, this remap method save my life! 🙂
really thanks!
Thanks, I was just looking for this. About to write it myself, and did one last google search, and boom.. you wrote it for me. Works like a champ.
I will mention, in my case, I had to catch real 404’s in the function in the else statement and call show_404() if the input isn’t valid. (I’m using this to call a search if there’s no controller function for the exact URL).
Appreciate it, keep up the good work.
[…] Now I’m starting to get mad. The article states that HTC told that user to perform a Hard Reset. I have already been told this once before by HTC over another issue that seems to have just “gone away”… (I can’t remember the exact error but it was something to the effect of “The process com.htc.bg has stopped unexpectedly.” and continuously kept popping up randomly and didn’t seem to affect any functionality whatsoever. I managed to dig up the ticket to HTC). […]
I’ve had this same issue for about a week now. I signed out of facebook for HTC sence and the notification went away. Signed back in to facebook for htc and its back again. Keep in mind I use facebook for Android as my primary facebook app, I only use facebook for HTC to keep my contacts sync’d and updated. Trying to figure out a work around for this myself. Just thought someone should know.
This bug kills me. I’ve been looking for a fix for months. It’s very annoying.
Mine does the same and it’s driving me in insane. It closes everything down and I have to start again. Not only does it do that, occasionally it will decided to delete my entire Inbox, even my locked ones. The phone doesn’t tell me the memory is full but does it anyway. I’ve lost loads of ‘locked’ images due to this.
I’m not inclined to completly re-set my phone
Thanks
This is superb! Thansk for sharing!!
Thanks for the post – this is one of the few times I’ve seen the issue discussed.
Unfortunately, I tried the factory reset twice and still have the same error occurring. I haven’t found any other information on the Internet regarding this problem and will probably have to put up with it until upgrading the phone.
thanks, never thought about it before, genius,
it was long time ago since i left netbeans 🙂
What’s funny about this is the fact that my Incredible had all of a sudden force close everything literally! Half of the time, I couldn’t answer a call or even make a call, due to everything force closing. I did a reset to the phone. I had did a backup so I would not lose my numbers. After the reset, I still get the error that you discuss. I never had that error until I did the reset. My apps and services that were loaded before the reset were all closing. I do seriously believe that I had to do the initial reset due to a virus. Of course, after the fact that I did reset the phone, my phone still has a trace on it. I did have Lookout Security on my phone and even though it scanned every time with no viruses, I still was attacked and couldn’t even begin to describe how…
There is now a hotfix available.
Go to settings and select “Applications”
In the “Unknown Sources” section, turn on the ability to “Allow installation of non-Market applications”
Exit your settings and open the Internet browser.
Enter “dl3.htc.com/misc/inc8049.apk”, this will download a hotfix.
If it didn’t start the install automatically, go to your download folder and Open the file “inc8049”.
Allow it to install.
Problem Fixed.
Ok, who are you and where did you find that? Why didn’t HTC tell me about it? I was practically begging for it! Will this work on the latest Incredible update (Android 2.3.4)?
I am runnig Android version 2.3.4.
I found the fix on the HTC Forums. Somebody else actually talked to HTC support and posted what they were told. (“http://community.htc.com/na/htc-forums/android/f/91/t/8475.aspx?PageIndex=4” Read the post from “MitchyBoy.”) I was also getting frustrated. I was uninstalling more and more apps, constantly clearing my cached data, all that. Finally, I tried the hotfix. It really works. The fix was developed to correct the problem of people not receiving text messages. I am guessing the low memory error and the not receiving text messages are caused by the same problem. Since then, I’ve been reinstalling applications that I used before the memory problem. Apparently not everybody at HTC is even aware of the fix, so I am going to the various forums and posting the solution. I didn’t try this, but maybe if you call HTC and say your phone is no longer receiving text messages instead of the low memory message, they might direct you to the hotfix.
Ah ha!!! Tried everything mentioned in this post and many others and NOTHING! has worked, even the hotfix that sounded like the solution for many. However, after a night of trying almost everything I could think of I wound up discovering something that fixed it for me. I remembered that in the past, my phone has occasionally deleted all of my txt messages, without a prompt, even though my setting are set to “no limit” on txt messages. In the past this pissed me off, but now I may no why. My phone hadn’t done this in a while so I opened my txt inbox and realized I had many large conversations, one of which containing 450+ txts. I deleted the conversation, which took about 30 seconds, but the “low disk space” icon disappeared immediately. Perhaps this will work for others as solutions appear to differ from phone to phone…
I have had this error on and off the entire time I have had this phone. I get the “low disk space” error with over 500MB internal free, and it gets to the point where it refuses to even open a browser because it thinks it has no space. I’ve missed emails, texts, and calendar alerts because of this. This is the worst smartphone I have ever had. I hate it with the burning hatred of a thousand suns. I was so excited when I first got this phone, but it has been such a horrible experience (with no helpful information coming from the vendor) that I will never, ever buy another HTC product. No other phone has this issue, even the Incredible 2 one of my family member’s has doesn’t have this problem, so there is a fix for it out there, they just won’t (or can’t) give it to us.
Never, ever, ever again will I buy another HTC product.
First:
Home Screen>Menu>Accounts&Sync> turn off any syncs you don’t want (ex: News).
If you choose to retain News, then at least go into it and delete unwanted feeds.
If Facebook is listed, go into it and delete preferences
Take note of which item are now set to sync.
Exit Accounts&Sync.
Finally:
Menu>Applications>ManageApplications>All> Find each application you are syncing and delete caches, and possibly “clear data”. You may have to re-enter accounts if you clear (Ex: mail/gmail)
Good Luck.
It’s working, Thanks
like that
Great stuff here! I thought I post here just to say I like the Halloween hack you got going on with your site.
A person could detect the light and the heat of that light if they looked straight down the hilt and activated the lightsaber….which would end up through their eye. Lol. Pretty interesting stuff.
My favorite CodeIgniter IDE is Codelobster – http://www.codelobster.com/codeigniter.html
I want money plz