PureEvil Posted September 13, 2008 Share Posted September 13, 2008 Quick question, I haven't "yet" purchased the upgrade to WHMCS to remove the "Powered by WHMCompleteSolution" statement, does this purchase also remove the WHMC logo within the PDF invoice output? (upper left square blue logo) If no, is there a way to change that logo to my own that I may just be missing? As always, thanks for any and all help... Jayson 0 Quote Link to comment Share on other sites More sharing options...
Sophia Posted September 13, 2008 Share Posted September 13, 2008 Hah! I actually know an answer You can just change the logo.jpg file in your images folder to anything you like (as long as you name it logo.jpg as well) to change your PDF invoice logo. You don't need to purchase the upgrade for that Hope that helps! 0 Quote Link to comment Share on other sites More sharing options...
PureEvil Posted September 13, 2008 Author Share Posted September 13, 2008 Thank you for your help Sophia. 0 Quote Link to comment Share on other sites More sharing options...
stugster Posted September 14, 2008 Share Posted September 14, 2008 Is there any way to increase the quality? I've updated my logo.jpg, but the quality is shoddy at best. 0 Quote Link to comment Share on other sites More sharing options...
Adam Posted September 14, 2008 Share Posted September 14, 2008 Is there any way to increase the quality? I've updated my logo.jpg, but the quality is shoddy at best. Hey, Are you sure its not your image? Thanks, Adam 0 Quote Link to comment Share on other sites More sharing options...
stugster Posted September 14, 2008 Share Posted September 14, 2008 The current one is 759pixels x 153pixels, and RBG/8... I've tried reducing it to the actual dimensions of the pdfconfig, but that makes it even worse. 0 Quote Link to comment Share on other sites More sharing options...
stugster Posted September 15, 2008 Share Posted September 15, 2008 Any ideas? 0 Quote Link to comment Share on other sites More sharing options...
Adam Posted September 16, 2008 Share Posted September 16, 2008 Hey, Only thing I can think of is the size of the image, make sure its the same size as the WHMCS logo that you replaced... Thanks, Adam 0 Quote Link to comment Share on other sites More sharing options...
biovolt Posted October 23, 2008 Share Posted October 23, 2008 For me the pdf increases the image size and that throws away the quality. I have not had a lot of time to go and see where the code is that stretches the image. if you only have big shapes in the image it looks OK, but as soon as there are small shapes it go pear shaped. Any one that already changes the code to not stretch the image? 0 Quote Link to comment Share on other sites More sharing options...
Jo Stonehouse Posted October 26, 2008 Share Posted October 26, 2008 It is possible to get a high-res image on the PDF. Simply ensure the copy of your logo is around 300dpi and then define the dimensions of the image in the pdf config file. Otherwise the image will default to screen quality 72dpi. See here: http://www.fpdf.org/en/doc/image.htm 0 Quote Link to comment Share on other sites More sharing options...
Gears Posted November 20, 2008 Share Posted November 20, 2008 (edited) w Width of the image in the page. If not specified or equal to zero, it is automatically calculated. h Height of the image in the page. If not specified or equal to zero, it is automatically calculated. What units? Pixels? Inches? Edit: it seems that the dimensions are in "points". Edited November 20, 2008 by Gears 0 Quote Link to comment Share on other sites More sharing options...
Gears Posted November 22, 2008 Share Posted November 22, 2008 How to do this in Photoshop: 1.) Open your logo .psd - the resolution should be 300DPI 2.) Crop the logo so there is some equal white space above, below, left, and right of the actual logo. If it's already cropped too tight, then add the whitespace. 3.) Go to Image > Image Size and set the image size to 300px in width and constrain the proportions 4.) Go to Image > Canvas Size and change the units to Points 5.) Set the width to 65 and the height to 20 (depending on the height of your logo, you may have to choose a number larger than 20) 6.) Save the file to whmcs_folder/images/logo.jpg 7.) Open whmcs_folder/includes/pdfconfig.php 8.) Find $pdf->Image(ROOTDIR.'/images/logo.jpg',20,25); at the top 9.) Change it to $pdf->Image(ROOTDIR.'/images/logo.jpg',20,25,65,20,jpg); Note: This is the method I used because I wasn't sure if fpdf would acknowledge decimal numbers in the width/height. 0 Quote Link to comment Share on other sites More sharing options...
DeanClinton Posted November 22, 2008 Share Posted November 22, 2008 Does anyone have the same instructions but for Fireworks? Thanks! 0 Quote Link to comment Share on other sites More sharing options...
kabam Posted June 5, 2009 Share Posted June 5, 2009 I did this using FireWorks, but quite honestly I just played the JPG and the PHP file until it looked almost right . It's still not 100%, but I can't spend any more time on it. Very frustrating... but I've had problems going from web to PDF in the past so it doesn't surprise me. 0 Quote Link to comment Share on other sites More sharing options...
pinoguin Posted July 1, 2009 Share Posted July 1, 2009 Same here, I tried 300dpi and the image quality is still ugly. And why does it still resort to the 'your logo here' when it could've just used the main logo field in the general settings? The image quality is bad enough and I just had to keep updating the logo.jpg each time I upgrade which is quite a chore. 0 Quote Link to comment Share on other sites More sharing options...
rldev Posted February 9, 2010 Share Posted February 9, 2010 How to do this in Photoshop: 1.) Open your logo .psd - the resolution should be 300DPI 2.) Crop the logo so there is some equal white space above, below, left, and right of the actual logo. If it's already cropped too tight, then add the whitespace. 3.) Go to Image > Image Size and set the image size to 300px in width and constrain the proportions 4.) Go to Image > Canvas Size and change the units to Points 5.) Set the width to 65 and the height to 20 (depending on the height of your logo, you may have to choose a number larger than 20) 6.) Save the file to whmcs_folder/images/logo.jpg 7.) Open whmcs_folder/includes/pdfconfig.php 8.) Find $pdf->Image(ROOTDIR.'/images/logo.jpg',20,25); at the top 9.) Change it to $pdf->Image(ROOTDIR.'/images/logo.jpg',20,25,65,20,jpg); Note: This is the method I used because I wasn't sure if fpdf would acknowledge decimal numbers in the width/height. I followed this to a "T". No luck. It still looks terrible. 0 Quote Link to comment Share on other sites More sharing options...
pbaldovi Posted April 5, 2010 Share Posted April 5, 2010 the images for web must be in 72 DPI. Be carfull with the compresion value for the JPG image, i should be 70% oo more. I have been changed my logo and not have problems with quality 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.