login
Forgot?
Login with Facebook

Don't have an account? Register one now!

GDLib: simple html to image

Bids 
4
Avg Bid
$213 USD
CLOSED
  • Project ID:

    475536
  • Project Type:

    Fixed
  • Budget:

    $30-$250 USD

Project Description:

First of all: there is no way to set up software like imagemagick at this server.
All we can use, is PHP 5 with GDLib support. I.e. it will not be a good idea to convert to pdf and convert once more -> jpg/png.

This job is very clear defined and there will not be any more details.
The function that we need, will look like this
build_image_from_simplehtml($html)
{
$image_width=400;//px
$image_height=300;//px
//TODO: ...
return $image;
}


All html tags that will be allowed for the $html input are these:
h1,div,p,strong,b,br,hr,img
Of course, we do not require css which will be too hard to implement.

Please make sure BEFORE bidding that You are able to do this job and also make sure that You can do it within the time frame that You post with the bid.
We need to know when it will be ready for sure and how much it will cost us. Our client is already waiting for us.

Payment: via moneybookers or paypal - let us know You prefer.

Again: delivery on time, please, because budget will be deducted if we are late! If we are good in time, there is a bonus payment which will be Yours in addition to the budget!

Please do not tell us any references or previous projects. Only if it had to do with creating images from PHP, it is interesting for us. If we find out that You did not read this description, Your bid will be ignored.

Skills required:

PHP

Project posted by:

gdlib Tonga
(0 Reviews)

Last seen:

Public Clarification Board

2 messages

  • leiradel

    ashishAtOdsdac is right. Since it seems you have some control over the HTML that must be rendered, removing the need for <div> will make things a lot simpler.

    Also, I'd like to know if:

    1. The image will always have a fixed size of 400x300; and
    2. The HTML will be well-formed XML, i.e. can be read by a XML parser.

    Cheers,

    Andre

    over 2 years ago

  • ashishAtOdsdac

    Hi,

    Designing a generic server side script using gd could be tough. Here are the reasons :-

    1. For divs - the dimensions would be hard to find. So the position. The div has extended according to the content size in it.

    2. The overall positioning of elements would be an issue in itself. The code need to replicate logic of how browser render all the elements on the page. This is tough :).

    It is advisable to hardcode image templates if you have only limited set of htmls. Or you may ask for an ajax based solution - as javascripts generally have all the information which php would not be able to extract out of html. Use the DOM :).

    Let me know if i could be of help to you.

    Ashish

    over 2 years ago


If you are the project creator or one of the bidders, please Log In for more options.


All Bids ()

globalgsi
globalgsi
    Offline
  Foundation LimeExchange Member
  Foundation EUFreelance.com Member
$200 in 3 days 
0
over 2 years ago
0.0

0.0

1 Review
0% Completion Rate
Please read the private message. Thank you.
jburgyan Poland
jburgyan
Poland From Poland     Offline
  Foundation EUFreelance.com Member
$250 in 1 day 
0
over 2 years ago
Dear Employer, I think it's a pretty straightforward small project, although it needs some effort to code it, I think I can complete it in 24 hours (in case the supported html tags are only the ones listed in the o... more
Dear Employer, I think it's a pretty straightforward small project, although it needs some effort to code it, I think I can complete it in 24 hours (in case the supported html tags are only the ones listed in the offer). Please contact me asap! Thank You! less
ibis123 Ukraine
ibis123
Ukraine From Ukraine     Offline
$180 in 7 days 
0
over 2 years ago
Hello, I am an expert php developer, I work in ukrainian IT company and can do this task well. It is very interesting task! Best regards, Alexey.
infernophp Bangladesh
infernophp
Bangladesh From Bangladesh     Offline
$220 in 10 days 
0
over 2 years ago
Please check PMB