DwZone Forum DwZone Forum
Welcome to the DwZone-it Forum
 
  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  
    RegisterRegister -->   LoginLogin  
Other extensions  
DwZone Forum Index -> Other extensions

Moderators: AdministratorsModerators 
Hint: For improved responsiveness, use Internet Explorer 4 (or above) with Javascript enabled, choose 'Dynamic' from the View dropdown and hit 'Set Options' to save your changes.
New Topic Search for
 View     Per page     Messages Since 
Messages 111 to 120 of 483 (Total: 237) First |  Prev |  Next |  Last  
 Subject Author Date  
   Re: XML to RECORDSET going crazy  
View this persons public profile  Gianluigi   9:06 5 Jan 2012  
   XML Recordset  
View this persons public profile  Marco   3:19 6 Dec 2011  
   Re: XML Recordset  
View this persons public profile  Gianluigi   11:54 6 Dec 2011  
   Re: XML Recordset  
View this persons public profile  Marco   0:09 7 Dec 2011  
   Re: XML Recordset  
View this persons public profile  Gianluigi   5:00 8 Dec 2011  
   XML Recordset  
View this persons public profile  Marco   3:19 6 Dec 2011  
    PHP Upload and Resize not uploading small images  
View this persons public profile  Adrian Smith   4:41 8 Nov 2011  
 
Hi,

I'm having several problems with PHP Upload and Resize (and Insert or Update database). I've download the latest version 1.1.7

I'm using the extension to upload an image, resize the main image and then create two smaller thumbnails and store the "name only" (of each of the 3 images) in the database.

If the image I'm uploading is already smaller than either (resized) thumbnails then the extension doesn't create the new copy (i.e. upload the image) but it does enter the new filename in the database - this means my website is looking for a file (e.g. _smallImageName.jpg that doesn't exist because the extension didn't create a new thumbnail and only uploaded the original file ImageName.jpg).

My extension is set up to resize to the following sizes:
main image: 980 pixels width or 653 pixels high
1st thumb: 740 pixels wide or 493 pixels high (identified with a prefix _d)
2nd thumb: 167 pixels wide or 167 pixels high (identified with a prefix _s)

If I upload an image that is 1080 pixels wide called bigimage.jpg the extension correctly resizes the images and creates the thumbnails and updates the database so I get three images:
bigimage.jpg (main image) 980 pixels wide
_dbigimage.jpg (1st thumb) 740 pixels wide
_sbigimage.jpg (2nd thumb) 167 pixels wide

However if I upload an image that is smaller than either of the thumbnails I get problems. So if I upload an image that is 250 pixels wide the extension only creates two images:
bigimage.jpg (main image) 250 pixels wide (i.e. not resized - this is correct)
1st thumb - is missing - should be _dbigimage.jpg but the file has not been created
_sbigimage.jpg (2nd thumb) 167 pixels wide
but the database is updated with 3 filenames bigimage.jpg, _dbigimage.jpg, _sbigimage.jpg - even though _dbigimage.jpg does not exist.

If I upload an image that is smaller (or the same size) as the smallest thumbnail then the system only creates one resized image (instead of three). So if I upload an image that is 150 pixels wide the extension only creates one image:
bigimage.jpg (main image) 150 pixels wide (i.e. not resized - this is correct)
1st thumb - is missing - should be _dbigimage.jpg but the file has not been created
2nd thumb - is missing - should be _sbigimage.jpg but the file has not been created
but the database is updated with 3 filenames bigimage.jpg, _dbigimage.jpg, _sbigimage.jpg - even though _dbigimage.jpg and _sbigimage.jpg do not exist.

Please let me know if you need to see a test page.




Regards
Adrian
 
Reply to this current thread  View this persons public profile  Send Private Message
   Re: PHP Upload and Resize not uploading small images  
View this persons public profile  Gianluigi   9:56 8 Nov 2011  
   Re: PHP Upload and Resize not uploading small images  
View this persons public profile  Gianluigi   22:59 11 Nov 2011  
   PHP Upload and Resize image filename  
View this persons public profile  Adrian Smith   8:57 25 Aug 2011  
Last Visit: Tuesday 24 Dec, 2024 3:03 am First |  Prev |  Next |  Last  
 Login
Username:  Password:    
Read Message Read Message   Unread message Unread message
Read message [popular] Read message [popular]   Unread message [popular] Unread message [popular]
Read message [locked] Read message [locked]   Unread message [locked] Unread message [locked]
All times are GMT-1

Jump to: