TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,236
  • Total Topics: 21,353
  • Online today: 739
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 520
  • Total: 521
  • lurkalot

Downloads - Attached Image not working

Started by PureLoneWolf, June 21, 2012, 10:44:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

PureLoneWolf

Link to my site: http://www.resurrectionremix.com/test
SMF version: SMF 2.0.2
TP version: 1.0 Final
Default Forum Language: English
Theme name and version: Curve
Browser Name and Version: Chrome (but issue is with any browser
Mods installed: TinyPortal, Ohara Youtube Embed, Tapatalk SMF 2.0 RC4/RC5/Final Plugin, FAQ Mod, SMF Gallery Lite
Related Error messages: None

Hi all

I am trying to move over to TinyPortal and I am basically there, except I am having an annoying issue when adding downloads.

When I create a Download, everything works perfectly apart from the "Additional Picture".   The file uploads correctly, and the picture appears to upload.  But the picture hasn't uploaded correctly.

I am asking here as image attachments to forum posts and the gallery mod are all working without issue.

I am working with PNG files and GD is in use on the server (no imagemagick available)

I would be grateful for any assistance anyone could provide.

Thanks

ZarPrime

PureLoneWolf,

First of all, Welcome to TinyPortal Support.

It works fine here.  On your site, as an admin, go to this page --> YourSite/index.php?action=tpmod;dl=adminsettings

Make sure you have set the following setting to "Yes"
Use the screenshot instead of icon? :    Yes

Also, make sure that you have filled in the boxes for "Resize screenshot sizes: : "
Here, we use the following settings for those boxes ...
80 X 80
200 X 200
800 X 800

Then Save and try going into the edit screen for one of your Downloads, for instance ...
http://www.resurrectionremix.com/test/index.php?action=tpmod;dl=adminitem11

Once you are there, scroll to the bottom where it says "Upload a new picture".  Click "Browse" to find the image on your computer and click open.  It will populate the textarea to the left of the Browse button.  Now click "Send" and wait for the image to be uploaded.

That should do it.  Let us know what happens.

ZarPrime

PureLoneWolf

Hi there

Thanks for the info, although I had those settings correctly set as per your post.

It seems to be with PNG files.  As soon as I converted my image to JPG as a test, it uploaded without any issues.

Thanks :)

ZarPrime

Ah, OK, well, I don't know if this makes any difference but look on the Admin download settings page at the top and see if PNG is one of the file types in there.

ZarPrime

PureLoneWolf

Yup, png is listed.

It's not really a problem, I just have to tell people to use JPG images :)

Thanks

ZarPrime

Hmmm, well, I suppose it's possible that there could be something wrong with your PNG image that SMF doesn't like.  There are some settings in the actual SMF Admin area that control images.  Let's see, I don't know if you have enough posts here yet to attach an image to your next post but could you try attaching the PNG you were trying to upload to your next post and let me try it on one of my test sites.

ZarPrime

ZarPrime

Arrrrggghhh, that won't work.  You only have 3 posts right now and you need 5 to post attachments.

ZP

PureLoneWolf

And now 4...

That said, attaching in the forum is absolutely fine.  It only happens when it is an image for a Download.

You can get it from here  http://www.wolflan.com/wolfie/blw1.png

IchBin

The problem is actually with your image PureLoneWolf. Your PNG is actually saved as a JPEG, but named as a PNG. You can see this if you have access to a linux machine where you can run the file command.

Running this command:
file blw1.png

Returns this information:
blw1.png: JPEG image data, JFIF standard 1.01

So the actual mimetype of your file is jpeg but named as a PNG. That's why it works when you change the file extension to jpeg.

If you don't have access to a command line on a linux machine you can use this function to get the same information.
http://www.php.net/manual/en/function.finfo-file.php

ZarPrime

PureLoneWolf,

Just to follow up on what Ichbin said, the file you linked in your last post is indeed a jpeg file, even though you named it with a png file extension.  I couldn't even save the image as a png on my computer as it forced a name change to blw1png.jpg.  Once it was on my computer, I was able to turn it into a png, as shown below ...

The image you linked ...
direct link --> http://i714.photobucket.com/albums/ww142/ZarPrime/blw1png.jpg
jpg image -->

and then I saved it as a png image ...
direct link --> http://i714.photobucket.com/albums/ww142/ZarPrime/blw1a.png
png image -->

They look the same but the top one is your original and the one at the bottom was the png I created.

Anyway, this topic is now marked "solved". O0

ZarPrime

This website is proudly hosted on Crocweb Cloud Website Hosting.