Image resizing

  • 16 Replies
  • 6381 Views

0 Members and 1 Guest are viewing this topic.

*

Offline mmanser

  • Newbie
  • *
  • 1
  • 1
Image resizing
« on: February 07, 2011, 07:35:29 AM »
Hello

Im new on working with MagicInfoPro and very happy that i found this forum, which gave me already a lot of support and ideas.

I have a question and i hope somebody can help me:

I want to show in a 345x240 px size frame this webcam:
http://www.tbamobcam.ch/tba01/live/tba01live.jpg

The problem is, the image from the webcam is to big for my frame.

So, what can i do, that it looks fine?

Thanks for your help.

Best regards from Z├╝rich (Switzerland)

DIGITAL SIGNAGE HELP AND SUPPORT

Image resizing
« on: February 07, 2011, 07:35:29 AM »

*

Offline Ewanl30

  • SuperHero & MegaGuru
  • ******
  • 153
  • 63
Re: Image resizing
« Reply #1 on: February 07, 2011, 11:52:06 AM »
is it not possible to embed the frame via html therefore having it set at the required size.
you can then add this to Magicinfo easily ive done it here.

*

Offline EricL

  • Moderator
  • SuperHero & MegaGuru
  • *****
  • 294
  • 41
Re: Image resizing
« Reply #2 on: February 07, 2011, 11:57:08 AM »
Hi

download the file attached-change the file extension from .jpg to .html

Place this file on your web server anywhere (desktop)

Create a web area in your template where you would like your webcam feed to show

Link to this file so it will show in the web area

Change the size of the web area to match the size set in the .html file code which is as below (300 x 300 is an example):

<html>
<head>
</head>
<body>
<img src="http://www.tbamobcam.ch/tba01/live/tba01live.jpg" width="300" height="300">
</body>
</html>

Your webcam will now show full picture but reduced to the chosen size

EricL

*

Offline RLS

  • Major Guru
  • **
  • 31
  • 3
Re: Image resizing
« Reply #3 on: March 10, 2011, 10:54:04 AM »
Hello

I'm currently in the process of trying this...But I'm just getting a red x?

Naturally i'm trying it with our webcam link which is in the format of "http://ipaddres:port/pda.htm"...

I have created a web area on the screen linking to the file on the desktop with the above address written into it...however the preview window does not work.

Any ideas? Am I missing something? Should I try the same thing ont the screens in dividually?

Thanks :)

DIGITAL SIGNAGE HELP AND SUPPORT

Re: Image resizing
« Reply #3 on: March 10, 2011, 10:54:04 AM »

*

Offline RLS

  • Major Guru
  • **
  • 31
  • 3
Re: Image resizing
« Reply #4 on: March 10, 2011, 11:21:08 AM »
Right, I have it working by using the following:

<html>
<head>
</head>
<body>
<object data="http://IP:port/pda.htm" width="700" height="500">
</body>
</html>

However...How can I make the feed smaller in MagicInfo? By changing the above values or?

*

Offline Ewanl30

  • SuperHero & MegaGuru
  • ******
  • 153
  • 63
Re: Image resizing
« Reply #5 on: March 10, 2011, 11:48:02 AM »
if your feed isnt as big as your html page make your adjustments via the html.
when you add the webpage to the screen on magicinfo you need to change the setting for top and left offsets
will take a little messing around but main point is you will need to use minus offset

look in the forum for BBC Iplayer one was just posted that will explain it more.

*

Offline RLS

  • Major Guru
  • **
  • 31
  • 3
Re: Image resizing
« Reply #6 on: March 10, 2011, 11:53:43 AM »
if your feed isnt as big as your html page make your adjustments via the html.
when you add the webpage to the screen on magicinfo you need to change the setting for top and left offsets
will take a little messing around but main point is you will need to use minus offset

look in the forum for BBC Iplayer one was just posted that will explain it more.

Hello

I have looked at that thread, but it doesn't show / explain how to resize the web page it is viewing...The problem I have is resizing the video feed on magic info, I can scale the magic info 'web' box to fit the video feed but I cant make this smaller as it starts to crop things then :(


*

Offline RLS

  • Major Guru
  • **
  • 31
  • 3
Re: Image resizing
« Reply #7 on: March 10, 2011, 11:57:10 AM »
also, the issue may be the page I am trying to display...as it has a video within a page...and you can manually scale the outside 'scroll' window...so i'm not sure if this is causing the issues

*

Offline Ewanl30

  • SuperHero & MegaGuru
  • ******
  • 153
  • 63
Re: Image resizing
« Reply #8 on: March 10, 2011, 12:15:34 PM »
the webpage and video playing shouldnt be an issue

the problem i had was using a pc to scale the video it looked fine but when published it wasnt showing correctly
if you have magicinfo pointing to the webpage you should only need to mess around with the top and offset settings.

what is the resolution of your magicinfo screens and what is the size of your video feed?

DIGITAL SIGNAGE HELP AND SUPPORT

Re: Image resizing
« Reply #8 on: March 10, 2011, 12:15:34 PM »

*

Offline RLS

  • Major Guru
  • **
  • 31
  • 3
Re: Image resizing
« Reply #9 on: March 10, 2011, 12:33:51 PM »
Size of the video feed is: 640x480

The screens resoloutions are 1920x1080

When you use the options for the 'web' box in MI it crops the window (naturally) however it won't scale...Or I cant get it to scale from within the HTML...Using the html file is really helpful at the moment as our video feed times out on the screens when they refresh, so i really want this working :)