Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Feature Requests
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 29th, 2012, 08:28 PM
dhilditch dhilditch is offline
 
Join Date: Feb 2012
Location: In my house
Posts: 108
Default Suggestion: Remove whitespace from images using PHP

Hi Eric & Stefan,

There are currently two direct options from within datafeedr regarding images - either access them from the affiliate website or 'download' them and then fetch them locally.

I was wondering if it'd be possible to add in an option to trim the whitespace at the same time as you download the image?

I found this solution to do so in PHP:

http://stackoverflow.com/questions/1...m-image-in-php

It'd be great if you could add it into the code as it'd make all of our sites look much better having large images that fill their containers.

Kind Regards,
Dave Hilditch
  #2  
Old August 29th, 2012, 09:55 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

You can implement that code. It's a little beyond the scope of support provided but if you have the images already stored locally, it should work.

Eric
  #3  
Old August 31st, 2012, 09:35 PM
dhilditch dhilditch is offline
 
Join Date: Feb 2012
Location: In my house
Posts: 108
Default

I was thinking the best place to put the code would be in the datafeedr code - maybe i have the wrong end of the stick:

I think Datafeedr does this with images:

1) Downloads the image to the uploads folder
2) Sets the local file name in the database
3) In future, if the image is retrieved and it exists locally it gets it locally else it starts at 1

I was thinking it would be easy to put it in at point 1 - i.e. when datafeedr downloads the image from the affiliate CDNs then it could also optionally call this php function to trim the whitespace.

It would be fantastic, certainly for us, and I believe for a whole lot of customers to make images far better.
  #4  
Old August 31st, 2012, 09:38 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Thread moved to "Feature Requests" forum.
  #5  
Old December 10th, 2012, 04:50 PM
dhilditch dhilditch is offline
 
Join Date: Feb 2012
Location: In my house
Posts: 108
Default

I've written a plugin that fixes images, crops whitespace and zooms the image so all images from all affiliate sources are the same size.

Available here http://www.affiliatewebdesigners.com...product-lists/
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove duplicate Images camseo Feature Requests 2 February 7th, 2013 09:24 AM
Code to remove border around product images pr2c3L3b Questions 9 September 17th, 2012 06:10 PM


All times are GMT -5. The time now is 03:47 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.