{"id":6727,"date":"2014-04-22T04:41:40","date_gmt":"2014-04-22T04:41:40","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/22\/problem-about-phpthumb-collection-of-common-programming-errors\/"},"modified":"2014-04-22T04:41:40","modified_gmt":"2014-04-22T04:41:40","slug":"problem-about-phpthumb-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/22\/problem-about-phpthumb-collection-of-common-programming-errors\/","title":{"rendered":"problem about phpthumb-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/d6cf833b659f32f492aa90963e6050d4?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMico Abrina<br \/>\nphp image upload pictures phpthumb<br \/>\nI&#8217;m having a very problematic error with phpthumb: http:\/\/phpthumb.gxdlabs.com\/ So basically, I have a form which uploads a profile picture. The uploading seems to work because it uploads the image in the directory. The problem is that it doesn&#8217;t generate the thumbnails but I&#8217;m sure that all the variables and names are correct. It gives me the following error. Specifically &#8216;Image file not found&#8217;:Fatal error: Uncaught exception &#8216;Exception&#8217; with message &#8216;Image file not found: ????&#8217; in {PATH}\\phpth<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f77ef279d6b33bc09ce5422049dd9e37?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ngenesis<br \/>\nphp gd phpthumb<br \/>\nlibrary: http:\/\/wiki.github.com\/masterexploder\/PHPThumb\/basic-usagei am using the PhpThumbFactory library to crop and upload an image. the error im receiving is this:Fatal error: Uncaught exception &#8216;Exception&#8217; with message &#8216;Image file not found: &#8216; in \/www\/iaddesign\/admin\/classes\/phpthumb\/ThumbBase.inc.php:193 Stack trace: #0 \/www\/iaddesign\/admin\/classes\/phpthumb\/ThumbBase.inc.php(172): ThumbBase-&gt;triggerError(&#8216;Image file not &#8230;&#8217;) #1 \/www\/iaddesign\/admin\/classes\/phpthumb\/ThumbBase.inc.php(<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b05f51b521c457efc73cac52b0d310a5?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJim Garrison<br \/>\nphp phpthumb<br \/>\nI had downloaded from official website, uploaded to my hosting server. I got this error message. [08-Mar-2012 21:26:07] PHP Fatal error: Class &#8216;PhpThumb&#8217; not found in \/home\/sokad \/public_html\/libs\/phpthumb\/thumb_plugins\/gd_reflection.inc.php on line 179 Fatal error: Uncaught exception &#8216;RuntimeException&#8217; with message &#8216;Cannot show image, headers have already been sent&#8217; in \/home\/sokad\/public_html\/libs\/phpthumb\/GdThumb.inc.php:569 Stack trace: #0 \/home\/sokad\/public_html\/resize.php(14): GdThumb-&amp;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/5856fe4e4b682e569581a97cba49420e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nxRobot<br \/>\nphp phpthumb<br \/>\nrequire_once &#8216;..\/ThumbLib.inc.php&#8217;; $thumb = PhpThumbFactory::create(&#8216;test.jpg&#8217;); $thumb-&gt;resize(100, 100)-&gt;save(&#8216;\/img\/new_thumb.jpg&#8217;); $thumb-&gt;show();I set 777 permission to img folder but I get this error:Fatal error: Uncaught exception &#8216;RuntimeException&#8217; with message &#8216;File not writeable: \/img\/new_thumb.jpg&#8217; in \/home\/xjohn\/www.mysite.com\/phpthumb\/GdThumb.inc.php:662 Stack trace: #0 \/home\/xjohn\/www.mysite.com\/phpthumb\/examples\/resize_basic.php(31): GdThumb-&gt;save(&#8216;\/img\/new_th&#8230;&#8217;) #1<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6a17de90749f7777d0dbaeeaef51f076?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nFuxi<br \/>\nphpthumb<br \/>\ni&#8217;m using ffmpeg for extracting a video frame from which i want to create a thumbnail using php thumb. creating the video frame works, but when trying to save the thumbnail file (under a different name &#8211; same directory) i&#8217;m getting this error:PHP Fatal error: Uncaught exception &#8216;RuntimeException&#8217; with message &#8216;File is not writeable, and could not correct permissions: d:\/Webs\/bla.jpg&#8217; in D:\\Webs\\phpThumb\\lib\\GdThumb.inc.php:656it can&#8217;t be a permission problem as i can already store the videofram<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/0e441dd1eb7bc6dee7b168d4fe13428c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nexpiredninja<br \/>\nphp permissions directory-structure thumbnails phpthumb<br \/>\nI wanted a script that automatically generates thumbnails when from a folder full of larger images. I&#8217;ve ran into some problems implementing it.I was getting some errors early on because I hadn&#8217;t included all the phpthumb files i needed, but now the errors are coming from within the phpthumb code itself. Will post more code as needed.The errors:Warning: getimagesize(.\\.) [function.getimagesize]: failed to open stream: Permission denied in C:\\xampp\\htdocs\\mysite\\GdThumb.inc.php on line 1070Fatal<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6d8c9c80723cd162a05f6c3e156ccbc7?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nTourshi<br \/>\njquery image google-chrome phpthumb<br \/>\nIm having trouble getting Chrome to recognize an Image width or height after the DOM has loaded. The Image is dynamically loaded through phpThumb script (which resizes the image). If I take away the dynamic url and just replace it with the Image&#8217;s direct url I get no issues and everything works in Chrome but with the dynamic url, chrome doesn&#8217;t seem to be able to calculate the image width or height.Anyone have any experience with this? Its doing my head in.The code in question is :var theImage<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ee8070e756b50feb2263bcc662f111ca?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1657958<br \/>\nphp image-upload special-folders phpthumb<br \/>\nI&#8217;m (a newbie in php) still working on a time off project and another problem came up, for which I can&#8217;t find a solution. Therefore I hope u guys can help me! Worked great the last time I posted something on here! I really appreciate your help&#8230;thx ahead!My problem: I want users to be able to upload pictures when they are logged in. They got several little buttons on their profile with images on them&#8230;and they should be able to change them&#8230; I want to have it like this -&gt; When a user uploa<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mico Abrina php image upload pictures phpthumb I&#8217;m having a very problematic error with phpthumb: http:\/\/phpthumb.gxdlabs.com\/ So basically, I have a form which uploads a profile picture. The uploading seems to work because it uploads the image in the directory. The problem is that it doesn&#8217;t generate the thumbnails but I&#8217;m sure that all the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6727","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6727"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6727\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}