Support Forums

Img resize question

This is a discussion on Img resize question within the Modules / Plugins / Modifications forums, part of the Developer Forums category; Hi, Is it possible to place a predefined background to the photo (during checkout upload)? To explain it more, see ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 08-05-2009, 06:16 AM   #1
Customer
 
damiun's Avatar
 
Join Date: Apr 2009
Posts: 412
Rep Power: 18
damiun is on a distinguished road
Default Img resize question

Hi,

Is it possible to place a predefined background to the photo (during checkout upload)?

To explain it more, see the pictures
Attached Images
File Type: jpg back.jpg (16.3 KB, 5 views)
File Type: jpg photo.jpg (83.3 KB, 5 views)
File Type: jpg overview.jpg (155.8 KB, 7 views)
File Type: jpg done.jpg (60.2 KB, 7 views)
damiun is offline   Reply With Quote
Old 08-05-2009, 11:55 AM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 135
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Well yes and no. The script does not include any way of doing this but it can be done by editing the upload code. Not an easy process and would require some knowledge of the GD library.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 08-05-2009, 01:46 PM   #3
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,311
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

What may be a better option than trying to merge two images is to simply add the yellow background to the class that is used to display the image. Also add the appropriate dimensions and sizes to the class to ensure the users image is centered within the classes box. You may also need to add in the template additional positioning like <td align="center" valign="middle">

Example:
.thumb
{
width: 100px;
height: 120px;
display: box;
text-align: center;
background: yellow;
margin: auto;
}
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Photo Window Resize willy928 Technical Support 1 06-05-2008 12:22 PM


All times are GMT -4. The time now is 04:09 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0