I’m working on generating FedEx labels for quick & easy shipping.
FedEx returns the label as a base64-encoded string. Assuming that
‘match’ is the base64 string containing the label data, here is what I
have to display the image:
That works fine, but I’d like to be able to set some html/css
parameters on it so that it prints at 200dpi, 4x6 inches (the RMagick
‘resample’ method wasn’t working for me). I don’t really want to save
the label as a file, either. Is there a way to send a variable to the
template (e.g., @image) so that it gets rendered as an image?
parameters on it so that it prints at 200dpi, 4x6 inches (the RMagick
‘resample’ method wasn’t working for me). I don’t really want to save
the label as a file, either. Is there a way to send a variable to the
template (e.g., @image) so that it gets rendered as an image?
Well you can do
So presumably, just would do the trick