Fix: Device Model Image Size: 256px
This commit is contained in:
@@ -17,7 +17,7 @@ namespace Disco.BI.Extensions
|
|||||||
{
|
{
|
||||||
using (Bitmap inputBitmap = new Bitmap(ImageStream))
|
using (Bitmap inputBitmap = new Bitmap(ImageStream))
|
||||||
{
|
{
|
||||||
using (Image outputBitmap = inputBitmap.ResizeImage(255, 255))
|
using (Image outputBitmap = inputBitmap.ResizeImage(256, 256))
|
||||||
{
|
{
|
||||||
using (MemoryStream ms = new MemoryStream())
|
using (MemoryStream ms = new MemoryStream())
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ namespace Disco.Web.Areas.API.Controllers
|
|||||||
// DataStore Failed - Use Generic Images
|
// DataStore Failed - Use Generic Images
|
||||||
if (m.ModelType != null)
|
if (m.ModelType != null)
|
||||||
{
|
{
|
||||||
var modelTypePath = Server.MapPath(string.Format("~/Content/Images/DeviceTypes/{0}.png", m.ModelType));
|
var modelTypePath = Server.MapPath(string.Format("~/ClientSource/Style/Images/DeviceTypes/{0}.png", m.ModelType));
|
||||||
if (System.IO.File.Exists(modelTypePath))
|
if (System.IO.File.Exists(modelTypePath))
|
||||||
{
|
{
|
||||||
return File(modelTypePath, "image/png");
|
return File(modelTypePath, "image/png");
|
||||||
|
|||||||
@@ -265,7 +265,7 @@ namespace Disco.Web.Areas.API.Controllers
|
|||||||
if (System.IO.File.Exists(filename))
|
if (System.IO.File.Exists(filename))
|
||||||
return File(filename, "image/png");
|
return File(filename, "image/png");
|
||||||
else
|
else
|
||||||
return File("~/Content/Images/Status/fileBroken256.png", "image/png");
|
return File("~/ClientSource/Style/Images/Status/fileBroken256.png", "image/png");
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual ActionResult ImporterUndetectedFiles()
|
public virtual ActionResult ImporterUndetectedFiles()
|
||||||
|
|||||||
Reference in New Issue
Block a user