Displaying 20 results from an estimated 100000 matches similar to: "Generate SVG image"
2006 Dec 02
0
Serving static svg images in the public folder
Hi!
I am trying to use svg images and serve them from the public/images
folder.
When using the url_for method I have to use the complete file name
including the extension. Can you explain why? I don''t need to use the
extension for gifs/jpegs/pngs.
Using the complete filename with url_for or writing a direct url to
/public/images I can get the file, but the mime type is text/plain, so
2007 Aug 09
1
displaying svg chart
dear railers
I was attempting to display a svg chart inside a tooltip in rails
using Scruffy.
my browser is Firefox 2 and i am using WEBRICK.
when i render inside the controller using
graph.render(:size=> [255,205], :to => ''C:\xyz.svg)
and serve iit via rhtml using the <embed> tag.
Instead of the chart inside the tooltip i get a dialog box asking me
to open it ... with
2007 Sep 22
2
Rails + XSLT
hey all,
i wanna learn how to use and integrate XSLT with RoR but i don''t find any
resources so if any one know any good resources i will be appreciated
thanks
--
Mohamed Saeed
software engineer
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group,
2008 Jun 26
9
find_by_sql + Join + Rails 2
Hello
I have write a code to select data from two tables (T1,T2) but the
problem is
@tables= T1.find_by_sql("select T1.*,T2.* from T1inner join T2on
T1.followup_id = T2.id where followups.userid = ''41'' ")
THe problem all values that is returned from running only T1
variables,why?
Where are T2 variables??
--
Posted via http://www.ruby-forum.com/.
2007 May 28
1
svg as a spescial case for image
SVG starts to become more useful in browsers like Firefox, OmniWeb,
Opera and soon Safari. There is a couple problem. Since no browser
support svg embedded with img one need to fall back to html from:
<object data="/path/to/img.svg" type="image/svg+xml"
width="512" height="384">Alt text</object>
Second, one need to write the width
2012 Feb 25
0
embed a bitmap by link reference into a SVG image
I would like, in R, to embed a bitmap image /by link reference/ into a SVG
plot image.
Images may be included in an SVG by
http://www.w3.org/TR/SVG/struct.html#ImageElementHrefAttribute link
reference , or even http://en.wikipedia.org/wiki/Data_Uri data , for
example:
My objective is to reduce the size of the SVG image files I am generating
(My plots have about 10? points: that's a
2006 Mar 27
2
svg image link
the link_to command is really nice, especially with confirm built in -
wondering if there is a way to use it with SVG images since SVG doesn''t
seem to work with image_tag
I can display svg images (in Firefox) with the following code:
<embed width=32 height=32 src="/images/quit.svg"
type="image/svg+xml"></embed>
"normal" link_to code:
2008 Apr 01
1
Write file with binary mode on linux
Hello,
I wanna write files on Linux platform but with binary mode.
On windows we use "wb" but on Linux what do we have to do?
Thanks.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2006 Oct 05
1
Generate image titles with a custom font and rmagick
Hi all, i was experimenting with rmagick but i cant find a way to do
this.
I want to generate an image containing the title of a blog post with a
custom font, for example like this page:
http://photomatt.net/2006/10/02/blogtalk-presentation/
Any references or advice in how to do this are more than welcome :)
--
Posted via http://www.ruby-forum.com/.
2006 Oct 19
3
Drawing with rails
I was just wondering if anyone had any experience drawing images with
rails. I know this isn''t rails per se but I have come to really enjoy
posting in this forum.
So far I have found to different systems for achieving what I need to
do.
SVG:
http://developer.mozilla.org/en/docs/SVG_In_HTML_Introduction
and
Canvas:
http://developer.mozilla.org/en/docs/Canvas_tutorial:Basic_usage
2008 Mar 14
2
Random image based verification for new user creation
Hi all,
I''m creating an email list managed by my CMS. I''m wondering if people
had any thoughts about securing it?
I''m just concerned that my application server might be overwhelmed by
requests to add to the list by a spider, etc.
Am I being overly concerned or is that a real possibility? I was
thinking of adding an image with a random sequence of numbers or
letters
2007 Nov 23
3
How to generate c1 and c2 reports for Rcov
Hi all,
I am implementing the Rcov stuff in my application and i was
able to generate c0 Report but i am in confusion about how to generate
c1 and c2 reports. Could some one please guide me for the same. Thanks a
lot in advance
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
2008 Jul 21
2
using image with submit_to_remote
Hi
How can I give an image to submit_to_remote .I could successfully do
it with link_to_remote as below..But the same not working with
submit_to_remote
<%= link_to_remote( image_tag("/images/cancel.png", {:alt =>
''Cancel'', :class=>"noborder",:title=>"Cancel"}),
{:update => "search_contact_div",
:url
2007 Jun 23
2
type image submit tags on IE dropping the params
I have noticed that on IE, the @params[:commit] does not come through on
image submit tags, but it does when the image is removed.
this fails:
<%= submit_tag( "Schedule", {:type => "image",
:src=>"/images/buttons/schedulecard.gif", :alt=>"Schedule Card",
:class=>"button"})%>
but this works:
<%= submit_tag(
2007 Nov 09
1
ruby on rails + ajax + iframe image uploader
hi,
I write a page that contain following function:
this site contain a html file upload control, which allow user to upload
image only.
once the image had been uploaded, it will automatic display on the
current page without refresh entire page.
when the image is saved, it will return javascript that embed in a
iframe (which is also in my current page) that can load the image into
my page (
2009 Feb 17
1
cloning an already uploaded image using attachment_fu
Hi,
I have an Image model that is attached to a item. The image was uploaded
through attachment_fu. Now, I want to reuse the same image for a new
item. I tried several tips found online. For example in
http://danieloshea.com/articles/254-cloning-images
# Create a clone of an image and it''s thumbnails.
def create_clone
c = self.clone
self.thumbnails.each do
2008 Sep 01
4
Generating Images/PDF Server-Side
Hi,
I am working on a project where I need to generate a chart (a bit like a
pie chart, but very customised) and insert this into a PDF document.
Does anybody have any advice on ruby libraries (or other techniques) for
doing this? Open to suggestions?
The resulting PDF will be designed for printing and so ideally should be
vector throughout (or any raster images 300dpi). I was thinking of some
2007 Jul 14
3
observe_field, does this generate HTML?
I don''t have Rails installed at the moment, I''d like to check myself,
but it''s just a simple curiosity.
observe_field fits into replacement tags <%= %>, which caught my
attention because as far as I know it''s just javascript observing a
field and should not stick anything into HTML. Is <%= merely used as an
enabling method, or will there actually be
2019 Jun 19
0
point size in svg
On 6/19/19 8:19 AM, Spencer Graves wrote:
> Hello, All:
>
>
> ????? I'm unable to control the font size in plots to svg. Consider
> the following:
>
>
> svg('cex-svg.svg')
> cex. <- 5
> plot(1:2, cex.axis=cex.)
> text(1:2, 1:2, c('as', 'DF'),
> ????????? cex=cex.)
> dev.off()
>
>
> ????? When I open this in Gimp
2007 Jan 04
0
dashed lines and SVG files devSVG("/folderul/unde/salvez/myplot.svg", width=10, height=10) plot(1:10, 1:10) dev.off()
Dear helpers,
I have a question about the SVG device. It works fine, the SVG file is
indeed produced, only the graphic differs from the R window.
In the SVG file the dashed line is just a regular plain one. My toy example is:
library(RSvgDevice)
devSVG("myplot.svg", width=10, height=10)
plot(1:10)
abline(v=5, lty=?dashed?)
dev.off()
Is there anything more (or different) I should do?