大约有 1,500 项符合查询结果(耗时:0.0116秒) [XML]

https://stackoverflow.com/ques... 

What are the different usecases of PNG vs. GIF vs. JPEG vs. SVG?

... it is. GIF images can also be animated and have transparency. Good for: Logos, line drawings, and other simple images that need to be small. Only really used for websites. JPEG - Lossy / Direct JPEGs images were designed to make detailed photographic images as small as possible by remov...
https://stackoverflow.com/ques... 

Using an image caption in Markdown Jekyll

... and you can even style it with markdown! Example: {% figure caption:"Le logo de **Jekyll** et son clin d'oeil à Robert Louis Stevenson" %} ![Le logo de Jekyll](/assets/images/2018-08-07-jekyll-logo.png) {% endfigure %} 1.3. Style it Now that your images and captions are semantically corre...
https://stackoverflow.com/ques... 

IE 8: background-size fix [duplicate]

...? filter: progid:DXImageTransform.Microsoft.AlphaImageLoader( src='images/logo.gif', sizingMethod='scale'); -ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader( src='images/logo.gif', sizingMethod='scale')"; However, this scales the entire image to fit in the allocated area. So ...
https://stackoverflow.com/ques... 

Creating a favicon [closed]

... If you already have a logo image that you want to transform into a favicon, then you can convert it using http://www.favicomatic.com/. It creates crisp favicons, and I haven't had to edit them after creating them. It will generate favicons at 16x...
https://stackoverflow.com/ques... 

Rails: How to reference images in CSS within Rails 4

... have the proper name adjusted. Here's what I mean. I have a file called logo.png. Yet when it shows up on heroku it is viewed as: ...
https://stackoverflow.com/ques... 

Convert RGBA PNG to RGB with PIL

...port for sorl thumbnails. from PIL import Image png = Image.open(object.logo.path) png.load() # required for png.split() background = Image.new("RGB", png.size, (255, 255, 255)) background.paste(png, mask=png.split()[3]) # 3 is the alpha channel background.save('foo.jpg', 'JPEG', quality=80) ...
https://stackoverflow.com/ques... 

Resize image in PHP

...original file size */ list($w, $h) = getimagesize($_FILES['logo_image']['tmp_name']); /*$ratio = $w / $h; $size = $width; $width = $height = min($size, max($w, $h)); if ($ratio < 1) { $width = ...
https://stackoverflow.com/ques... 

What is the JSF resource library for and how should it be used?

... <h:outputScript name="js/script.js" /> <h:graphicImage name="img/logo.png" /> Or, if you really need to have one, you can just give it a more sensible common name, like "default" or some company name. <h:outputStylesheet library="default" name="css/style.css" /> <h:outputScr...
https://stackoverflow.com/ques... 

Rails 3.1 and Image Assets

...css to .css.scss.erb and do: background-image:url(<%=asset_path "admin/logo.png"%>); You may need to do a "hard refresh" to see changes. CMD+SHIFT+R on OSX browsers. In production, make sure rm -rf public/assets bundle exec rake assets:precompile RAILS_ENV=production happens upon de...
https://stackoverflow.com/ques... 

Do I use , , or for SVG files?

... For a logo or icon I would still recommend using an IMG tag for semantical reasons and make sure the SVG is just a vector illustration. – Christian Landgren Oct 18 '13 at 15:36 ...