Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trape can't dispay media file (in this case picture file) #9

Closed
zombozo12 opened this issue Nov 6, 2017 · 4 comments
Closed

Trape can't dispay media file (in this case picture file) #9

zombozo12 opened this issue Nov 6, 2017 · 4 comments

Comments

@zombozo12
Copy link

So, i've been tried to put picture link to trape but trape just shows me what inside the picture which is the raw of the pic. You know, when you open image in notepad or another text editor. So how could it be happen?

@st4nn
Copy link
Contributor

st4nn commented Nov 7, 2017

@zombozo12 Can you give us further information please? I really don't understand the issue
Thanks for writing

@zombozo12
Copy link
Author

Thank you for reply my issue, I appreciate so much. Sorry for gave you messy information.

  1. I run trape.py and set png url into it. Original link : http://www.catster.com/wp-content/uploads/2017/08/A-fluffy-cat-looking-funny-surprised-or-concerned.jpg

  2. I open link that trape processed to be : http://127.0.0.1:1000/www.catster.com/wp-content/uploads/2017/08/A-fluffy-cat-looking-funny-surprised-or-concerned.jpg . This is how it's looks like

raw body of image

Why this is happen? Am I suppose to run trape in server?

@st4nn
Copy link
Contributor

st4nn commented Nov 7, 2017

Trape will try render the lure like a HTML object, so is better if your Lure url is a webpage, not a picture. If you want just show an image, try this:

<html>
	<body>
		<img src="myImage.png" alt="">
	</body>
</html>

@st4nn st4nn closed this as completed Nov 7, 2017
@zombozo12
Copy link
Author

I guess I got the problem here.

trape renders the lure like a HTML object.

You shouldn't do that. Try to find another way to render the object to be the original object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants