I basically finished the converter, it's a lot nicer than my old one in every way. The code is a lot neater, and it has many more functions. It will warn you if you're converting an image that probably wont fit on the calculator without resizing it. It can also log events and tell you what went wrong if conversion failed. Most importantly: it now cleans up after itself! It does this by deleting the dozens of unnecessary files convpng creates, then it stores all the converted appvars in a named folder!

Just for fun, I gave the program a 300MB picture to convert. It actually converted the image into 26,000 files and successfully cleaned up the useless ones!

This took quite a long time to implement due to my program not being authorized to create or modify images in some directories, even if they're directories the program itself made. Rolling Eyes

I have the code up on github here: https://github.com/TheLastMillennial/HDPictureViewerConverter2 I didn't include convpng if you download the project yet so you can't really use it right now. I also haven't bothered to create a readme yet since there isn't anything that can utilize this converter. I'll get to including those soon though!

So the easy part is done now. Now I need to get cracking at C.
Well, it's a start full of bugs, debugs, and an absent palette! Laughing


Yeah it looks pretty ugly now because the wrong palette is being used. These were the images it was trying to display:


It's the first time I got my program to display any image at all so I'm pretty excited! There's lots more I have to fix, add, and refine but I'm happy it's coming together mostly smoothly!

EDIT:
Heck yeah, I fixed it! Rendering is a bit slow right now but I'm sure I can speed that up significantly.
Is there a pic converter for macOS?
BioHazard wrote:
Is there a pic converter for macOS?

Sort of. If you want to use the easy converter then you'll have to use Wine. Otherwise you'll have to convert it manually using convPNG. In my first post I have a tutorial that covers manual conversion.

EDIT: I suppose I should add a progress update even though there hasn't been any recent work on it. A few weeks ago Jacobly helped me out a ton to get larger images down mostly correctly! I've broken something else because smaller images are being displayed too big now though. I wont have much time to work on it in the near future but this is still on my todo list!
I can't install Wine because it needs x Quartz, then that needs admin privileges, which I don't have; so Wine is off the table.
Hey,

I found out that the program doesn't work on my calculator (TI-84 plus CE-T python edition).
Is there gonna be an new version of the picture viewer soon?
If you're getting an ERR:INVALID, that's an issue with your OS, not the program itself. TI disabled all assembly programs from running in the latest OS versions.
I have a tutorial for bypassing this. It's mainly for games, but also works with other programs too:
Well, I had a bit of time over break to implement or fix rudimentary versions of the most important features. Image scaling, missing sub-image handling, zooming in and out, and panning around; finally this project looks like it's coming together!

Thanks to Jacobly, image scaling now works perfectly so I can throw whatever dimensions I want at the image, and the program figures out how to resize it accordingly! This is tied with zooming in and out of images which works pretty well so far. There's no protection against zooming in or out too far yet but I'm just glad it's working at all!


Panning around images is super janky currently since it's the latest thing I implemented and I haven't spent much time on it. It works well panning left and right so I'll show that with the space image in the screenshot below. Changing gears here; since each image is really just a bunch of sub-images combined to make one bigger one, there's a chance that one of those smaller images could get deleted. Instead of allowing unmapped memory to display, or stopping the image from loading entirely, I added a small sprite which goes in place of the missing sub-image. This works pretty well and you can see them when I accidentally break the program while panning around the puppy image.


There's a lot of work to be done to polish these features I implemented. Krytonic already offered some great suggestions like instead of re-drawing the whole image when panning, just shift the screen over and draw the sub-images I need. This should significantly improve speed with large images. Also, instead of allowing pictures on the edge of the screen to overflow, just clip the images on the edge of the screen. Unfortunately, I have no idea next time I'll be able to work on this but I'm pretty happy with what I've accomplished in the past few days. I'm really looking forward to being able to complete this project!
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 8 of 8
» All times are GMT - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement