Live data from Hacker News

Students are failing AP tests because the College Board can’t handle HEIC images

theverge.com

241–250 of 577 posts

Re: Students are failing AP tests because the College Board can’t handle HEIC images

#241
post #219

I know this is mean of me, but the student who was taking her Computer Science exam and who apparently thought that changing the file’s extension would change format? Yeah... she deserved to fail.

its not unheard that websites do only extension validation for uploads, worth a try!

Re: Students are failing AP tests because the College Board can’t handle HEIC images

#242
post #14

Earlier quoted context omitted.

> A national testing portal ought to support the default image format taken by the world's most popular phone, period. What if it can't because the format is proprietary and Apple wants to charge for its use? As I understand it, MS and Google have to pay licensing fees to enable support for it in Windows 10 and Android.

You're thinking of HEVC (video encoding, like h.265): https://en.wikipedia.org/wiki/High_Efficiency_Video_Coding#P... HEIC (image encoding) is available without royalties: https://en.wikipedia.org/wiki/High_Efficiency_Image_File_For... Regardless, in this case, as others noted, iOS would have just converted to jpg if College Board was using a standard image upload form.

> HEIC (image encoding) is available without royalties

Ah, ok, thanks!

Re: Students are failing AP tests because the College Board can’t handle HEIC images

#243
post #101

Earlier quoted context omitted.

>"Our system broke, you're screwed now, sorry" is never an acceptable answer. That's not what happened at all. The college board admitted their fault and are letting students take the test again. Even without that, they mentioned in their FAQ that JPEGs and PNGs are the only file types acceptable and even sent out a tweet (which should have been an email) a week before especially for iPhone users to let them know how…

Is it really so tough to shove an HEIC-to-JPEG converter in their pipeline?

[deleted]

Re: Students are failing AP tests because the College Board can’t handle HEIC images

#244
post #212
post #170

Earlier quoted context omitted.

People used to say the same thing about Internet Explorer

What's your point? If you are developing an application/website and it doesn't work with 50% of your market share- then you are a dumbass for not implementing it. ESPECIALLY for an AP EXAM with consequences. This isn't like "oh no, 50% can't reach our site about cat videos". This is an EXAM. Honestly cannot believe people on here defending them not adding simple image support for 50% of the testers...

HEIC isn't simple, and isn't common.

Apple should convert to JPG or PNG when exporting the image to anywhere anytime.

The same problem happens with webp images too - totally unusable almost everywhere, even in photoshop.

Apple wants to reduce storage space photos take up. Fine - but they should convert back to a standard format when exporting the image to be used on some other system.

With that said, it seems the issue is from students that didn't upload the image from their phone (where Apple correctly converts to JPG), but rather transferred the image to their computer, then uploaded into the AP Exam.

If that's true, then this is absolutely on Apple. Why would they export in a format that literally nobody else supports. What are these people supposed to do with a folder full of HEIC formatted photos, that can't be uploaded anywhere else, edited with any program, or opened even opened on some Operating Systems?

Apple should assume nobody else uses HEIC because... well, nobody else uses HEIC.

Re: Students are failing AP tests because the College Board can’t handle HEIC images

#245

.

So you build a service that doesn’t properly validate or gracefully handle invalid file types and it’s my fault as the end user when I try to upload something and the system fails? If you build a service that can’t support one of the most commonly used platforms in the world, that’s on you the developer, not me the user. This is software engineering 101 right here, and was completely avoidable on the part of the deve…

It does gracefully handle invalid formats. The problem that students did not follow the directions provided on how to take pictures in an appropriate format. Instead they tried their own hacks, such as changing the file extension.

Another user here claims their daughter was informed repeatedly before the test that HEIC was not supported and given instructions on how to change their phone settings to ensure comparability. This is confirmed in the article:

> though it does link to the College Board’s website, which instructs students with iPhones to change their camera settings so that photos save as JPEGs rather than HEICs.

Re: Students are failing AP tests because the College Board can’t handle HEIC images

#246

I am 100% on the side of the school. Unlike with JPEG, everybody who wants to work with HEIC should pay licence fees. Also, HEIC is like 50x more complex than JPEG. I hope the world will never get to a point, where each phone brand stores photos in their own format, and you need a special software from the phone manufacturer to view the photos (that is what we have now with raw photography formats, and what we used t…

"Wants to work with" doesn't apply here. This is what the phone does by default, so it's not a conscious choice of the user. Also, if the college had written the `accepts` field on their form correctly it would have been converted to JPG automatically when they uploaded it.

Re: Students are failing AP tests because the College Board can’t handle HEIC images

#247
post #11

Earlier quoted context omitted.

Tried a standard input tag with the proper accept attribute Selected a HEIC file from Photos in Safari, the selected image was automatically converted to JPEG. Ten bucks says College Board programmer(s) failed to do the most basic and standard filtering. Edit: Like a sibling comment said, the accept attribute actually isn't necessary; even PNG images (e.g. screenshots) from Photos are converted to JPEG automatically.…

> Ten bucks says College Board programmer(s) failed to do the most basic and standard filtering. Why is it a failure of the college board to put "accept="image/jpeg"", instead of iOS which failed to default to the more standardized jpeg format when HEIC was not specified? HEIC is a newer format which fewer systems support. iOS / Safari should default to JPEG in this case.

When you are accepting photos that will be taken from a phone, why wouldn’t you test to make sure that your site worked with the default settings for a large (if not largest) proportion of your users? If you are the College Board, it seems irresponsible to not have tested this better. Or at least saved the data to attempt to convert later (which it doesn’t seem like they did either).

And if they really needed to control the file formats this much, they should have written this functionality into an app (for iOS and Android) and handled taking the picture themselves.

They really screwed things up for a bunch of kids here.

Re: Students are failing AP tests because the College Board can’t handle HEIC images

#248
post #219

I know this is mean of me, but the student who was taking her Computer Science exam and who apparently thought that changing the file’s extension would change format? Yeah... she deserved to fail.

These students are high school students. I'm very doubtful that this course covered material like file types and encoding. First year CS classes are almost exclusively programming basics and architecture.

This line of thinking only really makes sense if you presuppose that every person taking a computer science course in high school has an understanding of file types. Many don't have this knowledge. I don't see why students should need to have additional knowledge that is outside the scope of a course, just to pass the clase.

There's a reason these things are taught in a CS program, often at higher levels. And that's because they're not common knowledge.

Re: Students are failing AP tests because the College Board can’t handle HEIC images

#250
post #69
post #32

Here's the relevant frontend source code for the file upload picker, if anyone's wondering (webpack://src/components/exam/submissions/FileInput.js): { const [file] = Object.keys(e.target.files).map(key => e.target.files[key]) const fileSizeInMb = file.size/(CONVERSION_BASE*CONVERSION_BASE) const fileSizeInKb = file.size/CONVERSION_BASE const split = file.name.split('.') const fileType = split[split.length-1].toLowerC…

I'm trying to square this with the fact people pointed out downthread, which is that iPhones will automatically convert HEIC images to jpeg from an HTML input form. Perhaps it's the `isAllowedExtension` check? If `e.target.files` is the actual file names on disk (and not whatever temporary file the browser made out of the HEIC file), that would cause a problem.

I think the issue is that accept is specified only with extensions rather than mime types.
Post reply on HN