Sag is a suite of libraries for connecting to CouchDB that uses the same API in PHP and JS (both Node and browser-based).
Questions tagged [sag]
12 questions
                    
                    2
                    
            votes
                
                1 answer
            
        How to GET an attachment from a Apache CouchDB document with Sag?
I have a document with an image attachment myimg.jpg which I would like to GET using Sag.
In my browser I am able to retrieve this image if I visit this url: http://localhost:5984/mydb/thedocid/myimg.jpg.
Using sag I am able to retrieve documents,…
        
        user1973386
        
- 1,095
 - 2
 - 10
 - 18
 
                    1
                    
            vote
                
                1 answer
            
        Download HTML Canvas/BLOB as a PNG
I’m programmatically creating multiple house images that look like this:
I'm doing this by simply iterating through a loop which:
Creates a new Canvas object at each iteration
Draws an SVG of the house onto this new Canvas object
Creates a PNG…
        
        Sirab33
        
- 1,247
 - 3
 - 12
 - 27
 
                    1
                    
            vote
                
                0 answers
            
        How to set multiple keyframes to run respectively after each other for infinite times
I have an svg container div containing multiple svg text to set the first text to fadeout and the second text to fadein in its place using css keyframes. I was wondering if there is anyway to set the entire animation to play infinity? 
        
            
            
                
                    
    
    
        
    
    
                
            
        
    
                    
        Rashed Obeidat
        
- 29
 - 1
 
                    1
                    
            vote
                
                1 answer
            
        Image inside SVG shape path renders as black in Safari
I have a really odd Safari bug. I have an image inside an SVG shape path, here's the code:
        
        leanda
        
- 199
 - 1
 - 4
 - 16
 
                    1
                    
            vote
                
                1 answer
            
        How to properly connect cloudant + sag
I'm working in getting a connection to cloudant done.
The following is using sag library for php:
        
            
            
                
                    
    
    
        
    
    
                
            
        
    
        Javier S
        
- 115
 - 2
 - 13
 
                    1
                    
            vote
                
                1 answer
            
        Connect Sag with Cloudant in Symfony2 project
How do I connect to Cloudant using Sag in my Symfony 2 project?
        user212218
                    0
                    
            votes
                
                0 answers
            
        Safari has some rendering issue with SVG's pattern
I found a rendering issue with Safari browser (both Mac and iPhone) with the following SVG file.
                    0
                    
            votes
                
                1 answer
            
        SVG file works locally, not when imported to design software
I wrote a little script (see code below) that converts a div to an SVG.
When you drag & drop the generated SVG on your computer and preview it, it works.
However, when you import it in Figma or Adobe Illustrator, it returns a blank frame.
I can't…
        
        jiblylabs
        
- 121
 - 8
 
                    0
                    
            votes
                
                1 answer
            
        SVG to HTML Path
this is my code:
      
        
      
        **
            
            
                
                    
    
    
        
    
    
                
            
           
    
        HappyGilmore
        
- 41
 - 1
 - 6
 
                    0
                    
            votes
                
                0 answers
            
        Loading SVG by Uri and removing whitespace in Android
The image url is:
https://static-qa-singlecare.s3.amazonaws.com/content/images/pharmacy/logo-color-riteaid.svg
If download we can see it contains a lot of whitespace top and bottom.
I am using this lib to…
        
        Alex
        
- 1
 - 1
 
                    0
                    
            votes
                
                1 answer
            
        DIV doesn't recognize inner SVG
Why doesn't the 
            
            
                
                    
    
    
        
    
    
                
            
        
    
 expand automatically to the height of the inner 
        
        codycrossley
        
- 571
 - 1
 - 6
 - 17
 
                    0
                    
            votes
                
                1 answer
            
        Cloudant NoSql : how to run a query in a php to get a specified json document?
I am using a php file to connect to my Cloudant database and retrieve a specific Json document.
The connection is ok but how can I run this query in the php file to get back the results ?
I already tested the query on the Cloudant Dashbord and I can…
        
        iLmafiosso
        
- 1
 - 1